What’s wrong with my approach here? The result is correct but the validation fails stating the name incorrect.
Please tell us the section the question appears in which is at the top of the question, e.g.
SECTION: SERVICES AND NETWORKING
Hi @Jai-Arya
You are not redirecting the yaml file to the right route to create the static pod.
Try this:
k run static-busybox --image=busybox --dry-run=client -o yaml --command -- sleep 1000 > /etc/kubernetes/manifests/static-busybox.yaml
You need to add the dry-run flag to not create a non static pod and also you redirect the output of your command with > to write a new file called static-busybox.yaml. Then kubernetes itself will create the static pod for you
Have a nice day!