Taints and Tolerations
taints
가 있는 Node에는 매칭되는 tolerations
가 없는 Pod가 스케줄링되지 않습니다.
taints
taints 설정
apiVersion: v1
kind: Node
metadata:
name: <name>
spec:
taints:
- key: <key>
value: <value>
effect: NoSchedule # PreferNoSchedule|NoSchedule|NoExecute
effect
PreferNoSchedule
: 가능하면 매칭되지 않는 Pod을 스케줄링하지 않습니다NoSchedule
: 배치되어 있는 Pod은 허용하지만 새롭게 스케줄링되는 것은 허용하지 않습니다NoExecute
: 배치되어 있는 Pod의 경우 축출하고, 새롭게 스케줄링되는 것도 허용하지 않습니다
노드 컨트롤러는 특정 조건을 만족하면 자동으로 NoExecute
taint를 추가하여 이에 대한 toleration이 없는 Pod을 축출하려 시도합니다.