IT 기술/클라우드 보안
[CKA] Taints(스케줄링에 참여안함) and Tolerations(스케줄링 시킴)
->^_^<-
2022. 3. 8. 10:57
반응형
Node는 하나 이상의 Taint를 가질 수 있고
Pod는 하나 이상의 Toleration을 가질 수 있다.
# Taint
Pod가 배포되지 못하도록 하는 정책
기본적으로 master node, daemonset은 taint되어 있다.
에러가 발생된 Pod는 자동으로 NoExecute Taints가 설정되어 스케줄링에서 제외된다.
# taint 확인방법
kubectl taint nodws node-name key=value:taint-effect
# node1에 있는 taints 검색
kubectl describe node node01 | grep -i taints
# taint의 key, value, effect 설정
kubectl taint nodes node2 spray=test:NoSchedule
반응형