1 개요[ | ]
- Kubernetes DaemonSet
- 쿠버네티스 데몬셋, 쿠버네티스 디먼셋
- Pod 복사본이, 클러스터 내 어느 노드 집합에서든 잘 작동하게 함
- 흔히 모든 노드에서 작동해야 하는 시스템 데몬(예: 로그 수집기, 모니터링 에이전트)을 배포하는 데에 사용함
- 모든 노드에서 단일 pod이 작동하게 한다.
- pod들은 동일한 image를 사용한다.
- ReplicaSet과 유사한 부분이 있다.
yaml
Copy
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: example
namespace: default
spec:
selector:
matchLabels:
app: hello-openshift
template:
metadata:
labels:
app: hello-openshift
spec:
containers:
- name: hello-openshift
image: openshift/hello-openshift
ports:
- containerPort: 8080
2 예시[ | ]
Console
Copy
# kubectl get ds -n kube-system
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
calico-node 3 3 3 3 3 beta.kubernetes.io/os=linux 2d
kube-proxy 3 3 3 3 3 <none> 2d
traefik-ingress-controller 2 2 2 2 2 <none> 22h
3 같이 보기[ | ]
- 데몬
- 쿠버네티스 ReplicaSet
- 쿠버네티스 용어
- 쿠버네티스 워크로드
- 쿠버네티스 updateStrategy
- kubectl get daemonsets (kubectl get ds)
4 참고[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.