<p>I am trying to follow the installation of helm chart for django-defectDojo on my CentOS machine given here <a href="https://github.com/DefectDojo/django-DefectDojo/blob/master/KUBERNETES.md" rel="nofollow noreferrer">https://github.com/DefectDojo/django-DefectDojo/blob/master/KUBERNETES.md</a></p>

<p>But on running the helm install command I am running into this issue -</p>

<blockquote>
  <p>Error: validation failed: [unable to recognize "": no matches for kind
  "Deployment" in version "extensions/v1beta1", unable to recognize "":
  no matches for kind "StatefulSet" in version "apps/v1beta2"]</p>
</blockquote>

<p>On further inspection, I believe this has to do with the postgresql chart but I am unable to resolve the issue. </p>

<p>My kubectl version is</p>

<blockquote>
  <p>kubectl version </p>
  
  <p>GitVersion:"v1.17.1",
  GitCommit:"d224476cd0730baca2b6e357d144171ed74192d6",
  GitTreeState:"clean", BuildDate:"2020-01-14T21:04:32Z",
  GoVersion:"go1.13.5", Compiler:"gc", Platform:"linux/amd64"} Server
  Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.1",
  GitCommit:"d224476cd0730baca2b6e357d144171ed74192d6",
  GitTreeState:"clean", BuildDate:"2020-01-14T20:56:50Z",
  GoVersion:"go1.13.5", Compiler:"gc", Platform:"linux/amd64"}Client Version: version.Info{Major:"1", Minor:"17",</p>
</blockquote>

<p>Any help on this will be appreciated. </p>

<p>Apparently there is a problem with this chart and it won't work with newer versions of <strong>Kubernetes</strong> (1.16 and higher) without additional modification. I found <a href="https://github.com/DefectDojo/django-DefectDojo/issues/1631" rel="nofollow noreferrer">this</a> issue on <strong>django-DefectDojo</strong> github page. <a href="https://github.com/DefectDojo/django-DefectDojo/issues/1631#issuecomment-549029627" rel="nofollow noreferrer">Here</a> same problem as yours is reported.</p>

<p>The problem is related with some major changes in <strong>Kubernetes APIs</strong> in <code>version 1.16</code>.</p>

<p>In <a href="https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.16.md#changelog-since-v1150" rel="nofollow noreferrer">Changelog since v1.15.0</a> you can read the following:</p>

<blockquote>
  <p>The following APIs are no longer served by default: (#70672, @liggitt)
  * <strong>All resources under <code>apps/v1beta1</code> and <code>apps/v1beta2</code> - use <code>apps/v1</code> instead</strong> * <code>daemonsets</code>, <code>deployments</code>, <code>replicasets</code> resources under
  <code>extensions/v1beta1</code> - use <code>apps/v1</code> instead * <code>networkpolicies</code> resources
  under <code>extensions/v1beta1</code> - use <code>networking.k8s.io/v1</code> instead *
  <code>podsecuritypolicies</code> resources under <code>extensions/v1beta1</code> - use
  <code>policy/v1beta1</code> instead</p>
</blockquote>

<p>And further there is even temporary solution provided:</p>

<blockquote>
  <ul>
  <li>Serving these resources can be temporarily re-enabled using the
  <code>--runtime-config</code> apiserver flag. </li>
  <li><code>apps/v1beta1=true</code></li>
  <li><code>apps/v1beta2=true</code> </li>
  <li><p><code>extensions/v1beta1/daemonsets=true,extensions/v1beta1/deployments=true,extensions/v1beta1/replicasets=true,extensions/v1beta1/networkpolicies=true,extensions/v1beta1/podsecuritypolicies=true</code></p></li>
  <li><p><strong>The ability to serve these resources will be completely removed in v1.18.</strong></p></li>
  </ul>
</blockquote>

<p>As your Kubernetes version is <strong>1.17</strong>, you can still use this workaround.</p>

<p>Alternatively you can use older <strong>Kubernetes</strong> version as suggested <a href="https://github.com/DefectDojo/django-DefectDojo/issues/1631#issuecomment-549966194" rel="nofollow noreferrer">here</a> or modify appropriate <code>yaml</code> manifests from <a href="https://github.com/DefectDojo/django-DefectDojo" rel="nofollow noreferrer">django-DefectDojo</a> project manually by yourself so they match current <strong>Kubernetes</strong> <strong>APIs</strong> structure.</p>
