Kubernetes - Pods
You want to create a Pod named 'webserver' running the nginx image that does NOT restart automatically if it crashes. Which command should you use?
--restart=Never creates a Pod with restart policy 'Never', so it won't restart automatically.--restart=Never. kubectl run webserver --image=nginx --restart=Always uses --restart=Always which creates a Deployment that restarts Pods. kubectl create pod webserver --image=nginx --restart=Never uses invalid syntax. kubectl run webserver --image=nginx creates a Deployment by default.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions