Daemonset을 taint/toleration 상관없이 배포하기

Alli_Eunbi·2023년 10월 24일
0

Daemonset은 노드에 하나씩 꼭 붙어야 하는 파드를 의미한다. 예를 들어 promtail이나 fluent-bit와 같이 로그를 수집하는 daemonset은 노드마다 붙어야 각 서버의 로그를 받을 수 있다.

이런 daemonset이 많아지거나, 노드가 많아지게 되어 일일이 toleration 설정을 맞춰주는것은 상당히 귀찮은 작업이다.

이런 작업을 줄이려면 daemonset에 아래와 같은 tolerations를 추가 해주면 된다.

tolerations:
  - effect: NoSchedule
    operator: Exists
  - key: CriticalAddonsOnly
    operator: Exists
  - effect: NoExecute
    operator: Exists

참조) https://stackoverflow.com/questions/57006394/kubernetes-daemonsets-in-the-presence-of-tolerations

profile
BACKEND

0개의 댓글