category
category

Reputation: 2155

kubectl YAML documentation for a resource

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.

Upvotes: 0

Views: 197

Answers (1)

Jordan Liggitt
Jordan Liggitt

Reputation: 18111

kubectl explain deployment works for resources which publish openapi specs.

Upvotes: 1

Related Questions