Task
From student-node ssh cluster1-controlplane to solve this question.
Create a static pod on cluster1-node01 called nginx-critical with the image nginx. Make sure that it is recreated/restarted automatically in case of a failure.
For example, use /etc/kubernetes/manifests as the static Pod path. i have done same steps but still idk why lab marks it wrong
cmds i used
kubectl run nginx-critical --image=nginx --dry-run=client -o yaml > static.yaml
scp static.yaml cluster1-node01:/root/
kubectl get nodes -o wide
ssh cluster1-node01
mkdir -p /etc/kubernetes/manifests
checked vi /var/lib/kubelet/config.yaml the staticpodpath: same as etc/k8s.maifests
exit
logout
root@cluster1-controlplane:~# kubectl get pods
i did mv instaed of copy here cp /root/static.yaml /etc/kubernetes/manifests/
