Study. uk . com
  1. Home
  2. All questions
  3. Question 480

CKA study material · question 480 of 1000

How is a Deployment's Pods replaced without changing its spec?

  1. kubectl rollout restart
  2. kubectl replace --force
  3. kubectl scale to zero and back
  4. kubectl rollout undo
Show the answer

Answer: A. kubectl rollout restart

kubectl rollout restart replaces a Deployment's Pods with no change to its spec.

Source: kubectl Quick Reference (Kubernetes) — Updating resources

Challenge yourself on this topic → Study as cards