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
Setting as default ingress class #1221
Comments
I believe we are seeing the same issue on clusters running Kubernetes 1.18.8 and 1.18.10; we have to apply either |
NGINX Ingress Controller 1.9.1, helm chart 0.7.1 solved this issue and I have tested successfully. Thanks. |
I'm getting this problem on EKS 1.18 with every version after helm 0.6.1 / controller 1.8.1. With chart v0.6.1 ingresses get the address of the load balancer auto-assigned, with v0.7.1 onwards nothing gets an address without specifying an ingress class by ingressClassName or annotation. Please advise |
NGINX Ingress Controller followed the K8s implementation of IngressClass with release 1.9.0 Our Helm chart 0.8.0 included a fix for ingressClass for K8s 1.18 |
But shouldn't this mean that ingresses still get assigned the default class? Mine are not. And in the logs I'm getting:
Why is it using the annotaion? I've got no ingresses with the annotation set
Here's the helm values I've got:
|
same here:
^-- see but I do have this:
^-- see |
@nashant https://kubernetes.io/docs/concepts/services-networking/ingress/#default-ingress-class @matti HTH |
Certainly did.
|
@nashant @matti Grab the values for the chart line 67: change false to true like so: Now update the current release on the kubernetes cluster with the values we just edited (if installing for first time, replace update with install) |
Yeah, setting up watchIngressWithoutClass worked for me. Thanks for advice. Chart: ingress-nginx-4.0.1 It's important to remove ingress.class annotation otherwise workaround will not work annotations:
kubernetes.io/ingress.class: <...> |
@laundry-96 you're on the wrong ingress controller.
|
@nashant Oh wow. I did not know there were two different nginx charts... Please ignore my comment then :) |
Hi, I'm trying to get ingress to work on k1.21 on docker-desktop for windows, but don't see the o/p from curl. Initially I was facing the 'default class' issue, which I could resolve by looking at the logs of ingress-controller and then setting the ingressClassname in ingress object. Still it is not working. Service is working though. Can someone pls advise? Here is my setup Ingress:
IngressClass
Service
Curl output for localhost:30114 (Type nodeport)
Etc/hosts (using wsl2)
|
@abhishekdanej If this continues to be an issue with kubernetes-ingress please open an issue, rather than commenting on a closed issue. |
Describe the bug
Although I installed nginx-ingress as default ingress, doesn't create ingress without adding ingress class annotation (kubernetes.io/ingress.class: "nginx")
Cluster have only one ingress and ingress class. No multi ingress.
To Reproduce
Steps to reproduce the behavior:
$
helm install my-ingress03 nginx-stable/nginx-ingress --set controller.kind=daemonset --set controller.service.type=LoadBalancer --set rbac.create=true --set controller.setAsDefaultIngress=true -n nginx-ingress
$
kubectl get ingress
But it works when i deploy as below ( added annotations: kubernetes.io/ingress.class: "nginx" )
Expected behavior
create ingresses successfully without adding ingress class annotations (kubernetes.io/ingress.class: "nginx") [ controller.setAsDefaultIngress=true]
Your environment
$
kubectl get pods -n nginx-ingress
$
kubectl describe pod my-ingress03-nginx-ingress-cr5k7 -n nginx-ingress
$
kubectl version
Bare metal / Rancher 2.4.8
nginx
Additional context
Add any other context about the problem here. Any log files you want to share.
$
kubectl describe svc my-ingress03-nginx-ingress -n nginx-ingress
$
kubectl get ingressclasses
$
kubectl describe ingressclasses
The text was updated successfully, but these errors were encountered: