kubectl taint nodes

1 개요[ | ]

kubectl taint nodes
master:~$ kubectl describe nodes | egrep -i ^'name|taint'
Name:               master
Taints:             node-role.kubernetes.io/master:NoSchedule
Name:               worker1
Taints:             <none>
Name:               worker2
Taints:             <none>
master에 대한 taint 제거
master:~$ kubectl taint nodes master node-role.kubernetes.io/master-
node/master untainted
master:~$ kubectl describe nodes | egrep -i ^'name|taint'
Name:               master
Taints:             <none>
Name:               worker1
Taints:             <none>
Name:               worker2
Taints:             <none>
master에 대한 taint 추가(원복)
master:~$ kubectl taint nodes master node-role.kubernetes.io/master=:NoSchedule
node/master tainted
master:~$ kubectl describe nodes | egrep -i ^'name|taint'
Name:               master
Taints:             node-role.kubernetes.io/master:NoSchedule
Name:               worker1
Taints:             <none>
Name:               worker2
Taints:             <none>

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}