<p>I've been through a huge amount of stuff on <a href="https://kubernetes.io/docs/" rel="nofollow noreferrer">https://kubernetes.io/docs/</a> and just want to be able to find definitions of what fields I need for what K8s structures I'm trying to develop. I want to be able to create persistent volumes and understand what the options are and be able to encode that in a sensible way. Surely these are somewhere? </p>

<p>I get this is a terrible question, but I feel like I'm trying to code these manifests up with a mixture of random rubbish from Google and examples, which I'm pretty sure is a terrible way to develop production critical infrastructure. </p>

<p>You can check the resource spec for kubernetes by consulting the <a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.15" rel="nofollow noreferrer">Web API</a> (this is for v1.15).</p>

<p>If you do not want to leave the CLI, you can also use <code>kubectl explain</code>, for instance:</p>

<pre class="lang-sh prettyprint-override"><code># check description of a persistent volume spec
$ kubectl explain persistentvolume.spec
</code></pre>
