Kubectl command to get all the available fields for a kind

Once I have used a command of kubectl
Which gets all the available configuration we can do for a any resource.
eg pod.

When I executed kubectl command for resource type pod.
It gives a big output where all the configuration is shown like metadata, labels, nodeselector, tolerations and everything.

Hi @saireddybonthu

Is that Kubectl explain?

1 Like

Yes it is thanks.

This was the command I used.
kubectl explain pod --recursive

--recursive will give you tons of output.

Constrain the output to the part of the spec you need, like

kubectl explain pod.spec.containers.resources

for example.

1 Like