Files
school-dev-k8s/practice/11.deployment-alternative/1.daemonset
2021-09-27 16:59:35 +03:00
..
2021-09-27 16:59:35 +03:00
2021-09-27 16:59:35 +03:00

DaemonSet

  1. Переходим в директорию с практикой.
cd ~/slurm/practice/4.advanced-abstractions/1.daemonset
  1. Создаем демонсет
kubectl apply -f daemonset.yaml

В ответ должны увидеть

daemonset.apps/node-exporter created
  1. Смотрим на поды
kubectl get pod -o wide

Видим

NAME                  READY   STATUS    RESTARTS   AGE   IP            NODE
node-exporter-g5tt8   2/2     Running   0          11s   10.107.32.4   gke-s000-default-pool-41fb7951-ntk8
node-exporter-jczbm   2/2     Running   0          32s   10.107.32.3   gke-s000-default-pool-41fb7951-4sns
node-exporter-xpb9f   2/2     Running   0          22s   10.107.32.2   gke-s000-default-pool-41fb7951-lkjn
  1. Чистим за собой кластер
kubectl delete -f daemonset.yaml