<p>I was upgrade kubernetes 1.19.1. then ingress deployment give this warning;</p>
<p>Warning: networking.k8s.io/v1beta1 Ingress is deprecated in v1.19+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
ingress.networking.k8s.io/msrs-ingress created</p>
<p>I have changed correct new version of ingress api ( v1beta to v1) but now I cant install again because of admission rule;</p>
<p>Error from server: error when creating &quot;disabled/my-ingress-prod-v2.yaml&quot;: admission webhook &quot;validate.nginx.ingress.kubernetes.io&quot; denied the request: rejecting admission review because the request does not contains an Ingress resource but networking.k8s.io/v1, Resource=ingresses with name my-ingress2 in namespace my-pro</p>
<p>actualy I changed my-ingress2 like this;</p>
<p>after:</p>
<pre><code>apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  annotations:
    kubernetes.io/ingress.class: nginx
  name: my-ingress
spec:
  rules:
    - http:
        paths:
          - path: /
            backend:
              serviceName: frontend
              servicePort: 80
</code></pre>
<p>befor:</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: my-ingress
spec:
  rules:
    - http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: frontend
                port:
                  number: 80
</code></pre>
<p>how can I found correct way to install ingress rules.  I don't want to disable admission</p>
<pre><code>kubectl delete -A ValidatingWebhookConfiguration ingress-nginx-admission
</code></pre>

<p>Here is pull request which fixed it:</p>
<p><a href="https://github.com/kubernetes/ingress-nginx/pull/6187" rel="noreferrer">https://github.com/kubernetes/ingress-nginx/pull/6187</a></p>
<p>You just need to wait for new release. You can track progress here:</p>
<p><a href="https://github.com/kubernetes/ingress-nginx/projects/43#card-45661384" rel="noreferrer">https://github.com/kubernetes/ingress-nginx/projects/43#card-45661384</a></p>
