netdata/helmchart

Can't use ingressClassName

dongho-jung opened this issue · 3 comments

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: ~

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

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

Thanks for finding the problem, @0xF4D3C0D3!