PaaS/Kubernetes

(Kubernetes) Taints and Toleration

armyost 2021. 3. 17. 22:34
728x90

taint

노드마다 설정가능. 설정한 노드에는 POD가 스케줄되려면 조건이 붙음

 

toleration

taint를 무시할 수 있음

 

주로 노드를 지정된 역할만 하게할 때 사용합니다.

 

옵션
- NoSchedule : toleration이 없으면 pod이 스케쥴되지 않음, 기존 실행되던 pod에는 적용 안됨
- PreferNoSchedule : toleration이 없으면 pod을 스케줄링안하려고 하지만 필수는 아님, 클러스터내에 자원이 부족하거나 하면 taint가 걸려있는 노드에서도 pod이 스케줄링될 수 있음
- NoExecute : toleration이 없으면 pod이 스케줄되지 않으며 기존에 실행되던 pod도 toleration이 없으면 종료시킴

 

명령어
kubectl taint node {nodename} {key}={value}:{option}

'PaaS > Kubernetes' 카테고리의 다른 글

(Kubernetes)NodeSelector And NodeAffinity  (0) 2021.03.21
(Kubernetes) kubectl 커맨드 모음 -2  (0) 2021.03.17
(Kubernetes) Scheduler  (0) 2021.03.16
(Kubernetes) NameSpace 와 Service  (0) 2021.03.15
(Kubernetes) Replica 와 Deployment  (0) 2021.03.14