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

CKA study material · question 965 of 1000

A colleague insists a Deployment exists, but kubectl get deployments returns nothing. What is the most likely explanation?

  1. The object was created with a different API version
  2. The user lacks list permission and the error was suppressed
  3. The command was run against a different namespace
  4. The Deployment has zero replicas and is therefore hidden
Show the answer

Answer: C. The command was run against a different namespace

kubectl get on a namespaced type shows only the current namespace unless one is named, which is a frequent reason for an object appearing to be missing.

Source: kubectl get (Kubernetes) — Synopsis

Challenge yourself on this topic → Study as cards