Where is the Kubernetes YAML/JSON configuration files documentation?

Hei,

I'm looking for the documentation for Kubernetes's configuration files. The ones used by kubectl (e.g. kubectl create -f whatever.yaml).

Basically, the Kubernetes equivalent of this Docker Compose document.

I did search a lot but I didn't find much, or 404 links from old stackoverflow questions.

Upvotes: 1

Views: 121

Answers (1)

Michael Hausenblas
Michael Hausenblas

Reputation: 13941

You could use the official API docs but a much more user-friendly way on the command line is the explain command, for example, I never remember what exactly goes into the spec of a pod, so I do:

$ kubectl explain Deployment.spec.template.spec

Upvotes: 2

Related Questions