<p>There <em>must</em> be "full-configuration" and example templates of Kubernetes YAML configs <em>somewhere</em> with comments itemizing what parameters do what with runnable examples somewhere. </p>

<p>Does anyone know where something like this might be? Or where the "full API" of the most commonly used Kubernetes components are?</p>

Rant Overflow
<p>There is documentation for every k8s api version available, for example <a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/" rel="noreferrer">check this link</a>.</p>
<p>The way I found what every key in yaml file represent and what does it mean is via <code>kubectl explain</code> command.</p>
<p>For example:</p>
<pre><code>$kubectl explain deploy.spec
</code></pre>
<p>Trick I use while doing CKAD to see full list could be:</p>
<pre><code>$kubectl explain deploy --recursive &gt; deployment_spec.txt
</code></pre>
<p>This will list all available options for kubernetes deployment that could you use in yaml file.</p>
<p>To generate some template there is option to use <code>--dry-run</code> and <code>-o yaml</code> in <code>kubectl</code> command, for example to create template for CronJob:</p>
<pre><code>$kubectl run cron_job_name --image=busybox --restart=OnFailure --schedule=&quot;*/1 * * * * &quot; --dry-run -o yaml &gt; cron_job_name.yaml
</code></pre>
