首页 > 其他分享 >Kubernetes学习笔记(十):Taints and Tolerations

Kubernetes学习笔记(十):Taints and Tolerations

时间:2022-08-17 21:22:57浏览次数:67  
标签:node kubectl Kubernetes taint Taints Tolerations effect

Taints - Node :

kubectl taint nodes node-name key=value:taint-effect

taint-effect : NoSchedule | PreferNoSchedule | NoExecute

NoExecute : 新Pod不会部署,已存在的节点也会终止

Tolerations - Pods :

pod-definition.yml

spec:
  tolerations:
  - key: "app"
    operator: "Equal"
    value: "blue"
    effect: "NoSchedule"

kubectl describe node kubemaster | grep Taint : 查看master node的Taint

标签:node,kubectl,Kubernetes,taint,Taints,Tolerations,effect
From: https://www.cnblogs.com/Bota5ky/p/16596782.html

相关文章