<p>While deploying mojaloop, Kubernetes responds with the following errors:</p>
<blockquote>
<p>Error: validation failed: [unable to recognize &quot;&quot;: no matches for kind
&quot;Deployment&quot; in version &quot;apps/v1beta2&quot;, unable to recognize &quot;&quot;: no
matches for kind &quot;Deployment&quot; in version &quot;extensions/v1beta1&quot;, unable
to recognize &quot;&quot;: no matches for kind &quot;StatefulSet&quot; in version
&quot;apps/v1beta2&quot;, unable to recognize &quot;&quot;: no matches for kind
&quot;StatefulSet&quot; in version &quot;apps/v1beta1&quot;]</p>
</blockquote>
<p>My Kubernetes version is 1.16.<br />
How can I fix the problem with the API version?<br />
From investigating, I have found that Kubernetes doesn't support apps/v1beta2, apps/v1beta1.<br />
How can I make Kubernetes use a not deprecated version or some other supported version?</p>
<p>I am new to Kubernetes and anyone who can support me I am happy</p>

Dan
<p>In Kubernetes 1.16 some <code>api</code>s have been changed. </p>

<p>You can check which apis support current Kubernetes object using </p>

<pre><code>$ kubectl api-resources | grep deployment
deployments                       deploy       apps                           true         Deployment
</code></pre>

<p>This means that only apiVersion with <code>apps</code> is correct for Deployments (<code>extensions</code> is not supporting <code>Deployment</code>). The same situation with StatefulSet. </p>

<p>You need to change Deployment and StatefulSet apiVersion to <code>apiVersion: apps/v1</code>.</p>

<p>If this does not help, please add your YAML to the question.</p>

<p><strong>EDIT</strong>
As issue is caused by HELM templates included old apiVersions in Deployments which are not supported in version 1.16, there are 2 possible solutions:<br></p>

<p><strong>1.</strong> <code>git clone</code> whole repo and replace apiVersion to <code>apps/v1</code> in all templates/deployment.yaml using script <br>
<strong>2.</strong> Use older version of Kubernetes (1.15) when validator accept <code>extensions</code> as <code>apiVersion</code> for <code>Deployment</code> and <code>StatefulSet</code>.</p>
