Static pods are a great way to run a pod on a single node without the involvement of the Kubernetes control plane. In this lab, you will have a chance to exercise your knowledge of static pods by creating them in an existing cluster.
sudo vi /etc/kubernetes/manifests/example.yml
Anything under this path will be managed by kubelet.
Add the following line
apiVersion: v1 kind: Pod metadata: name: beebox-diagnostic spec: containers: - name: nginx image: nginx:1.14 ports: - containerPort: 80
Restart kubelet to start the static pod:
sudo systemctl restart kubelet
Now if you try to delete it will work because it’s managed by kubelet.