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

CKA study material · question 489 of 1000

An engineer runs kubectl port-forward and the terminal appears to hang. What is happening?

  1. The command runs in the foreground and does not return
  2. The Service has no endpoints
  3. The Pod is not ready
  4. The local port is already in use
Show the answer

Answer: A. The command runs in the foreground and does not return

kubectl port-forward does not return; the session needs its own terminal.

Source: Use Port Forwarding to Access Applications in a Cluster (Kubernetes) — Forward a local port to a port on the Pod

Challenge yourself on this topic → Study as cards