javax4u / cka

certified kubernates administrator
Apache License 2.0
0 stars 0 forks source link

There are 3 Nodes in cluster, create one DaemonSet (Name: my-pod, Image: nginx) on each node except one (Woker-node-3) #1

Open javax4u opened 2 months ago

javax4u commented 2 months ago

There are 3 Nodes in cluster, create one Daemonset (Name: my-pod, Image: nginx) on each node except one (Woker-node-3)

kubectl taint node worker-node-3-cgaga env=qa:NoSchedule
kubectl describe node worker-node-3-cgaga | grep -i env

What is the specialty of Daemonset and What is statefulset ?

Daemonset is kind of deployment which make sure every node will have this pod, (in case this is not tolerated by some particular node). Example of such set is log collector, CPU and RAM monitor which collects data and push to Grafana or Loki .

Whereas statefulset kind of deployment has pods which can handle statefulness of pod after restart, it does not give surety about running on each node . It's purpose is not similar to Daemonset. It makes sure each replicated pod has unique network identity and stable persistent storage.

javax4u commented 2 months ago

What other types of deployment are there other than DaemonSet and StatefulSet

Other types are CronJob , replicaset and job