- Daemonset 역할
- 전체 노드에서 Pod가 한 개씩 실행되도록 보장
- 로그 수집기, 모니터링 에이전트와 같은 프로그램 실행 시 적용
| Replicaset definition | Daemonset definition |
| apiVersion: apps/v1 kind: ReplicaSet metadata: name: rs-nginx spec: replicas: 3 selector: matchLabels: app: webui template: metadata: name: nginx-pod labels: app: webui spec: containers: - name: nginx-container image: nginx:1.14 |
apiVersion: apps/v1 kind: Daemonset metadata: name: rs-nginx spec: selector: matchLabels: app: webui template: metadata: name: nginx-pod labels: app: webui spec: containers: - name: nginx-container image: nginx:1.14 |
- node worker 재연결시 token 없을 때 재생성
- (master)
- kubeadm token list
- kubeadm token create --ttl 1h
- (node)
- kubeadm join 172.16.0.3:6443 --token [신규생성 토큰값] --discovery-token-ca-cert-hash sha256:….
- (master)
'K8S' 카테고리의 다른 글
| Job Controller (0) | 2025.02.07 |
|---|---|
| Statefulset (1) | 2025.02.07 |
| Rolling Update를 위한 Deployment (1) | 2025.02.07 |
| ReplicaSet (ReplicationController와 차이점) (1) | 2025.02.07 |
| ReplicationController란? (0) | 2025.02.07 |