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

CKA study material · question 966 of 1000

Two API groups both serve a resource named events, and kubectl get events is ambiguous. How is one addressed unambiguously?

  1. With --api-group on the get command
  2. By setting the preferred group in the kubeconfig
  3. By using kubectl explain first
  4. By naming the type as TYPE.VERSION.GROUP
Show the answer

Answer: D. By naming the type as TYPE.VERSION.GROUP

kubectl get accepts the full TYPE.VERSION.GROUP form, which disambiguates a resource name served by more than one API group.

Source: kubectl get (Kubernetes) — Synopsis

Challenge yourself on this topic → Study as cards