Kubernetes

Create a static pod with the image python that runs the command sleep 2017

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

First change to the directory tracked by kubelet for creating static pod: cd /etc/kubernetes/manifests (you can verify path by reading kubelet conf file)

Now create the definition/manifest in that directory k run some-pod --image=python --command sleep 2017 --restart=Never --dry-run=client -o yaml > statuc-pod.yaml