-
Notifications
You must be signed in to change notification settings - Fork 789
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
jx should annotate the deployed Ingress with kubernetes.io/ingress.class: "nginx"
when the nginx ingresscontroller is used
#599
Comments
kubernetes.io/ingress.class: "nginx"
when the nginx ingresscontroller is usedkubernetes.io/ingress.class: "nginx"
when the nginx ingresscontroller is used
@jody-frankowski we have a controller called exposecontroller which runs as a helm hook and generates the ingress rules. I guess this should take some config, maybe defaulting to nginx that indicates the |
Yes, I think that's the proper solution. We just need to be mindful of two things:
|
Is there a workaround for this until it is fixed? |
Any news on this? We use multiple ingress controllers so we NEED that annotation. |
Sorry this fell off my radar. I'll get that annotation |
I forgot to reference the full repo for this issue in the commits so linking the fixes here jenkins-x/draft-packs#35 We'll need to wait for the BDD tests to run and pass before the new release is available. That will be triggered now and will likely release tomorrow providing all things are well. |
I'll update and close this issue once the new release is available. |
The release with this fix is now available. |
Can the annotation be overwritten, in case you have another Ingress Controller configured? (Eg. Traefik) Would it make sense to parameterize this ingress.class through jx? |
@JacobHeidelbachDFDS , what is the syntax to override the "kubernetes.io/ingress.class" annotation via myvalues.yaml? |
The gce ingress controller only supports NodePort services, however there is also a bug in the gce ingress controller which makes it stop evaluating Ingress objects when it fails for one.
Since jx doesn't annotate its Ingress object with
kubernetes.io/ingress.class: "nginx"
, and the backend services are ofClusterIP
type, this effectively forbids us to use the gce ingress controller.Note in the following example that the service is of type
NodePort
and should work with the gce ingress controller (the following works when I setkubernetes.io/ingress.class: "nginx"
on all the ingress deployed by jenkins-x):The annotation should also probably be set by default for any ingress deployed by jenkins-x when the nginx ingress controller is installed.
Ping @vgallissot
The text was updated successfully, but these errors were encountered: