anzhihe

k8s 污点(Taint) 和容忍度(Toleration)使用

和 key: value: effect: NoSchedule PreferNoSchedule NoExecute key: operator: Equal Exists value:operatorEqual effect: gpu=true:NoSchedulegpu=true:NoSchedule NoExecute kubectl taint nodes <node-name> key1=value1:NoSchedule <node-name>key1value1NoSchedule。 apiVersion: v1 kind: Pod metadata:   name: my-pod spec:   containers:   – name: my-container     image: nginx:latest   tolerations:   – key: “key1”     operator: “Equal”     value: “value1”     effect: “NoSchedule” my-podkey1=value1:NoSchedule Exists apiVersion: v1 kind: Pod metadata:   name: my-pod spec:   containers:   – name: my-container     image: nginx:latest   tolerations:   – key: “key1”     operator: “Exists”     effect: “NoSchedule” my-podkey1 Existskey、valueeffect)。 。 kubectl taint nodes <node-name> <key>- tolerations : kubectl […]

k8s 污点(Taint) 和容忍度(Toleration)使用 Read More »