<p>We have inherited a kubernetes application on GCP with a Traefik ingress controller, running an old version of traefik (<code>traefik:v1.7.18-alpine</code>).  Google cloud is forcing kubernetes upgrades to <code>v1.22</code> soon and we're getting GCP warnings that traefik is using deprecated k8s APIs.</p>
<p><a href="https://i.stack.imgur.com/sxw6y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sxw6y.png" alt="enter image description here" /></a></p>
<p>Without getting into the weeds, does anybody know what the minimal version of traefik is that would be compatible with kubernetes 1.22?  According to this thread, it seems it's <code>traefik 2.X</code> at least - <a href="https://github.com/traefik/traefik/issues/8343" rel="nofollow noreferrer">https://github.com/traefik/traefik/issues/8343</a>.</p>
<p>Wondering also if it's possible to configure traefik 1.X to not use this API somehow?  Have no idea where/why this deprecated API is in use.</p>

Adam Hughes
<p>Kubernetes API v1.22 requires atleast Traefik v2.5 and above as <a href="https://cloud.google.com/kubernetes-engine/docs/deprecations/apis-1-22#ingressclass-v122" rel="nofollow noreferrer">some APIs are deprecated in the Kubernetes version 1.22</a>, as most of them were former Beta (v1beta1) APIs. In v2.5, the <a href="https://doc.traefik.io/traefik/reference/dynamic-configuration/kubernetes-crd/#definitions" rel="nofollow noreferrer">Traefik CRDs</a> have been updated to support the new API version apiextensions.k8s.io/v1 as the Beta API version of IngressClass is no longer served as of version 1.22.</p>
<p>The support of the networking.k8s.io/v1beta1 API Version will stop in Kubernetes v1.22.</p>
<p>You can refer to these documentation for more information about <a href="https://cloud.google.com/kubernetes-engine/docs/deprecations/apis-1-22#ingressclass-v122" rel="nofollow noreferrer">Deprecation Warnings</a> , <a href="https://doc.traefik.io/traefik/migration/v2/#v24-to-v25" rel="nofollow noreferrer">Traefik v2 minor migrations</a> &amp; <a href="https://doc.traefik.io/traefik/migration/v1-to-v2/#migration-guide-from-v1-to-v2" rel="nofollow noreferrer">Migration from v1 to v2</a></p>
<p>I hope this answered your queries. Have a good day :-)</p>
