1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | apiVersion: apps/v1 kind: DaemonSet metadata: name: test-mydaemonset spec: selector: matchLabels: app: agent template: metadata: labels: app: agent spec: containers: - name: nginx image: nginx | cs |
kubectl apply -f [yaml_파일]
kubectl get daemonset
kubectl get daemonset -o wide
kubectl describe daemonset [데몬셋_이름]
kubectl edit daemonset [데몬셋_이름]
kubectl replace --force -f [yaml_파일]
kubectl delete daemonset [데몬셋_이름]