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

CKA study material · question 930 of 1000

kubectl port-forward is run against a Deployment, and the Pod it selected is deleted during a rollout. What happens?

  1. Forwarding moves to another Pod of the Deployment
  2. Forwarding pauses and resumes when a new Pod is ready
  3. The connection is retried against the Service instead
  4. The session ends and the command must be rerun
Show the answer

Answer: D. The session ends and the command must be rerun

port-forward selects one matching Pod and stays with it; when that Pod terminates the session ends and forwarding does not migrate.

Source: kubectl port-forward (Kubernetes) — Synopsis

Challenge yourself on this topic → Study as cards