<p>I'm trying to upgrade some GKE cluster from 1.21 to 1.22 and I'm getting some warnings about deprecated APIs. Am running Istio 1.12.1 version as well in my cluster</p>
<p>One of them is causing me some concerns:</p>
<p><code>/apis/extensions/v1beta1/ingresses</code></p>
<p>I was surprised to see this warning because we are up to date with our deployments. We don't use Ingresses.</p>
<p>Further deep diving, I got the below details:</p>
<pre><code>➜ kubectl get --raw /apis/extensions/v1beta1/ingresses | jq
Warning: extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
{
  &quot;kind&quot;: &quot;IngressList&quot;,
  &quot;apiVersion&quot;: &quot;extensions/v1beta1&quot;,
  &quot;metadata&quot;: {
    &quot;resourceVersion&quot;: &quot;191638911&quot;
  },
  &quot;items&quot;: []
}
</code></pre>
<p>It seems an IngressList is that calls the old API. Tried deleting the same,</p>
<pre><code>➜  kubectl delete --raw /apis/extensions/v1beta1/ingresses
Error from server (MethodNotAllowed): the server does not allow this method on the requested resource
</code></pre>
<p>Neither able to delete it, nor able to upgrade.</p>
<p>Any suggestions would be really helpful.</p>
<p>[Update]: My GKE cluster got updated to <code>1.21.11-gke.1900</code> and after that the warning messages are gone.</p>

<p>In our case, use of old version of <a href="https://github.com/kubernetes/kube-state-metrics" rel="nofollow noreferrer">kube-state-metrics</a> seems to cause the beta version of API calls. Some days after updating kube-state-metrics, the deprecated API calls was stopped so far.</p>
