kubectl and kubeconfig · Question 4 of 12

How can you look up directly in the terminal which fields an object such as spec.containers supports?

1 answer is correct. Easy Created with AI

Show answer

Answer

  • A kubectl explain

Explanation

kubectl explain pod.spec.containers shows fields with descriptions from the cluster's API schema. kubectl describe, by contrast, shows the state of a specific object together with its events.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications