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

Can't use ingressClassName #332

Closed
dongho-jung opened this issue Feb 1, 2023 · 3 comments
Closed

Can't use ingressClassName #332

dongho-jung opened this issue Feb 1, 2023 · 3 comments

Comments

@dongho-jung
Copy link

ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"
path: /
pathType: Prefix
hosts:
- netdata.k8s.local
## whole spec is going to be included into ingress spec.
## if you intend to use ingressClassName declaration, remove ingress.class from annotations
# spec:
# ingressClassName: nginx
# tls:
# - secretName: netdata-tls
# hosts:
# - netdata.k8s.local

When I use ingressClassName with kubernetes.io/ingress.class, I get error like this / one or more objects failed to apply, reason: Ingress.extensions "netdata" is invalid: annotations.kubernetes.io/ingress.class: Invalid value: "alb": can not be set when the class field is also set

That's because kubernetes.io/ingress.class always has a default value

What should I do? Please help.. thanks

p.s. belows weren't working

annotations: {}
or
annotations: ~
@ilyam8
Copy link
Member

ilyam8 commented Feb 1, 2023

@netdata/cloud-sre can you help us here?

@dongho-jung
Copy link
Author

well.. I've googled little more and found that this is actually helm's bug helm/helm#5184

it should be controlled if I set the annotation as null but in recent version it doesn't work anymore

you can close this issue

@ilyam8
Copy link
Member

ilyam8 commented Feb 1, 2023

Thanks for finding the problem, @0xF4D3C0D3!

@ilyam8 ilyam8 closed this as completed Feb 1, 2023
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

2 participants