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

CKA study material · question 964 of 1000

kubectl describe pod web is run in a namespace holding web-abc and web-def but no Pod named exactly web. What happens?

  1. An error reports that no such Pod exists
  2. The first Pod alphabetically is described
  3. Nothing is printed and the exit code is zero
  4. Both Pods are described, as name prefix matches
Show the answer

Answer: D. Both Pods are described, as name prefix matches

describe checks for an exact match first and, finding none, describes every resource whose name begins with what was given.

Source: kubectl describe (Kubernetes) — Synopsis

Challenge yourself on this topic → Study as cards