<p>Hei,</p>

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

<p>Basically, the Kubernetes equivalent of this <a href="https://docs.docker.com/compose/compose-file/" rel="nofollow noreferrer">Docker Compose</a> document.</p>

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

e741af0d41bc74bf854041f1fbdbf
<p>You could use the <a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/" rel="nofollow noreferrer">official API docs</a> but a much more user-friendly way on the command line is the <code>explain</code> command, for example, I never remember what exactly goes into the spec of a pod, so I do:</p>

<pre><code>$ kubectl explain Deployment.spec.template.spec
</code></pre>
