특정 node 가 특정 pod 만 수용할 수 있도록 하거나 특정 node에 배치되지 않도록 하는 수단
Taint 는 node에 지정하는 요소
Tolerant는 pod에 지정하는 요소
key value 쌍의 값으로 이루어져 있음
# node에 taint 설정
kubectl taint nodes node명 key=value:NoSchedule
# taint 삭제
kubectl taint nodes node명 key=value:NoSchedule-
Control plane 에 pod 가 되지 않도록 하는 taint 처리는 존재
key , value , operator, effect를 사용하여 정의한다
apiVersion: v1
kind: Pod
metadata:
name: my-pod
spec:
tolerations:
- key: "app"
value: "dev"
operator: "Equal"
effect: "NoSchedule"
container:
- name: nginx
image: nginx