Hi, just wanted to ask why we need the "--restart=Never" in creating a static po . . .

Abigail Marigza:
Hi, just wanted to ask why we need the “–restart=Never” in creating a static pod:

kubectl run static-busybox --image=busybox --command sleep 1000 --restart=Never --dry-run -o yaml > static-busybox.yaml

Mohamed Ayman:
We put this flag if we want to run a pod just once and never restart it even if it returns a non-zero exit status.
And you can simply ignore it.