static pods are some pods which will be created and managed by Kubelet .

In the below example yaml file inside the node1 manifest.

here Kubelet will automatically create the pod in node 1

static pods are identified with the Node name ending with the pod name . in the below case it is nginx-<NODENAME>

when ever we delete the new pod will be created immediately

if the file is there in manifest folder then kubelet will create the pod automatically

Master will have some of the Admin pods running in static mode under kube-system namespace

if you delete the static pod then kubelet will automatically re-create it .

if you delete the yaml file form the manifest location then kubelet will not delete the running pod . if you want you have to delete it .

Note: k in the above screen means kubectl . i have aliased it using alias k=kubectl

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *