✔ Kubernetes taint & toleration
Udemy Labs - Certified Kubernetes Administrator with Practice Tests
Scheduling : Practice Test- Taints and Tolerations
1. taint 추가하기
$ kubectl taint node [노드 이름] [key]=[value]:[effect]
2. taint 제거하기
$ kubectl taint node [노드 이름] [key]=[value]:[effect]-
effect 뒤 "-" 표시 붙이면 삭제!
3. YAML 파일 속에 tolerations 지정하기
apiVersion: v1
kind: Pod
metadata:
name: nginx
spec:
containers:
- name: nginx
image: nginx
tolerations:
- key: "[key]"
operator: "Exists"
value: "[value]"
effect: "NoSchedule"
✍🏻 참고 링크
https://kubernetes.io/ko/docs/concepts/scheduling-eviction/taint-and-toleration/
https://nayoungs.tistory.com/entry/Kubernetes-k8s-Taint%EC%99%80-Tolerations