kubectl YAML documentation for a resource

3/10/2018

Is there a kubectl command that gives advice about essential fields required in the YAML, or YAML examples, for a given resource?

Currently, when I want a YAML example of a resource, for example a deployment, I search the online documentation. I'd rather stay in the terminal.

-- category
kubectl
kubernetes
yaml

1 Answer

3/10/2018

kubectl explain deployment works for resources which publish openapi specs.

-- Jordan Liggitt
Source: StackOverflow