Where is the Kubernetes YAML/JSON configuration files documentation?

9/5/2018

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.

-- e741af0d41bc74bf854041f1fbdbf
kubectl
kubernetes

1 Answer

9/5/2018

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
-- Michael Hausenblas
Source: StackOverflow