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

annotation "kubernetes.io/ingress.class" is deprecated, use 'spec.ingressClassName' instead #720

Closed
yomek33 opened this issue Aug 13, 2024 · 5 comments

Comments

@yomek33
Copy link

yomek33 commented Aug 13, 2024

The annotation kubernetes.io/ingress.class is deprecated and generates a warning in Kubernetes logs. The current configuration should be updated to use the spec.ingressClassName field instead.

kubernetes.io/ingress.class: "nginx"


It may appear in other parts of yaml files.

FYI: More details about this deprecation and changes can be found in
https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#deprecating-the-ingress-class-annotation

@bwplotka
Copy link
Member

Fixed in #726

@bboreham
Copy link
Member

Apparently making this change broke everything.
Maybe some other change was needed?

@bboreham
Copy link
Member

Should it be a field in the spec object, and not an annotation?

@bwplotka
Copy link
Member

Ups, sorry, didn't actually apply to check... my fault

@bwplotka bwplotka reopened this Oct 18, 2024
@bboreham
Copy link
Member

Should be fixed by #770

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

3 participants