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.