<p>When I try to build a new image to Kubernetes, I got this error:</p>
<blockquote>
<p><code>**unable to decode &quot;K8sDeploy.yaml&quot;: no kind &quot;Deployment&quot; is registered for version &quot;apps/v1&quot;** </code></p>
</blockquote>
<p>Thie error began when I updated the Kubernetes version, here my version info:</p>
<pre><code>Client Version: v1.19.2
Server Version: v1.16.13
</code></pre>
<p><a href="https://i.stack.imgur.com/2uRGJ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2uRGJ.jpg" alt="enter image description here" /></a></p>
<p>I tried also to build by my localhost and does work, but by Jenkins don't.</p>
<p>Somebody knows to solve this?</p>

Gabriel Aguiar
<p>Just check for case sensitivity in YAML file</p>
<p>In my case it was 'kind' field</p>
<p><code>kind: deployment</code></p>
<p>changed it to...</p>
<p><code>kind: Deployment</code></p>
