登录后复制 apiVersion: apps/v1 kind: Deployment metadata: name: my-deployment spec: replicas: 2 selector: matchLabels: app: my-app template: metadata: labels: app: my-app spec: tolerations: - key: "example-key" operator: "Exists" effect: "NoSchedule" containers: - name: my-container image: my-image 1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21. 原创作者: u_15460722 转载于: https://blog.51cto.com/u_15460722/11785619