Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; #1292

Closed
CrazyTuna opened this issue Oct 22, 2021 · 5 comments

Comments

@CrazyTuna
Copy link

Describe the bug
I'm currently using application-gateway-kubernetes-ingress (AGKI) v1.40. I've just updated to AKS version 1.21.2 and seeing this warning:
apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+;

I've also created a fresh aks cluster using 1.22.2 and wasn't able to install AGKI on it.

To Reproduce
Create a cluster with AKS v.1.21.2 and install AGKI v1.4.0 => warning
Create a cluster with AKS v.1.22.2 and try to install AGKI v1.4.0 => error

@vladmm
Copy link

vladmm commented Nov 1, 2021

#1253

Looks like there's already a PR open for this for some time.
I wander what's taking so long, this is a blocker for v1.22+

@CJJ69
Copy link

CJJ69 commented Dec 1, 2021

Do not do this!

I've just upgraded an existing AKS cluster to version 1.22.2 (very foolish)
now AGIC is broken; adding an Ingress does nothing. Listeners, rules etc. are no longer created in App GW

I can see that AGIC has upgraded, it was 1.4:
mcr.microsoft.com/azure-application-gateway/kubernetes-ingress:1.5.0-rc1 app=ingress-appgw

I have tried many things...

annotations:
# deprecated as of 1.22
#kubernetes.io/ingress.class: azure/application-gateway

changed Ingress to add spec.ingressClassName

spec:
ingressClassName: azure-application-gateway

fixing the yaml (removed beta.)

nodeSelector:
beta.kubernetes.io/os:

And on discovering this error message: ingresses.networking.k8s.io is forbidden: cannot list resource "ingresses" in API group "networking.k8s.io" at the cluster scope.

I found that networking.k8s.io is missing from ClusterRole!

- apiGroups:
- networking.k8s.io
resources:
- ingresses

@akshaysngupta
Copy link
Member

@CJJ69 Thank for sharing! Will straight away get to fixing this.

@sunmsieben
Copy link

Any update on this? I've updated our Pre-Prod clusters to 1.22 and had adjust AGIC to use 1.5.0rc1 to make this work.
But for now we're waiting to roll out the new version until this is solved.

@Lord-RedShirt
Copy link

Hi @akshaysngupta. Has this this issue been resolved or targeted to a release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants