Open gioppoluca opened 1 year ago
I think I'm hitting the same issue with trying to access the Spark UI on a cluster running Traefik. @gioppoluca have you found any workarounds?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Still relevant
It would be a fairly easy change to add if ingressClassName == "nginx"
to https://github.com/kubeflow/spark-operator/blob/master/internal/controller/sparkapplication/driveringress.go#L139, however this would be a breaking change as users may be implicitly relying on this annotation even if they haven't specified the -ingress-class-name
argument.
Would it help you if this was changed to if ingressClassName == "" || ingressClassName == "nginx"
so that you can specify -ingress-class-name=traefik
to disable this behaviour while still retaining the implicit behaviour?
Could be a start, but I remember It was not only that, on vacation now but Will check It out asap. I think It should be a solution good also for other ingresso controllers
I think that there Is something also on rows 169,170 to check. Seems linked to the row you pointed out.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
It seems tha the way that: https://github.com/GoogleCloudPlatform/spark-on-k8s-operator/blob/master/pkg/controller/sparkapplication/sparkui.go manages ingressPath is peculiar to nginx ingress controller For others like traefik the grouping in case of (/|$)(.*) has to be dome differently (by adding a middleware that strips the path (for example). But the path that is created by adding the grouping and the annotation for nginx could break the proper path interpretation.
Could be made so that is possible to state we are not using nginx so these operations are not done and the ingresspath is not altered from the things written in ingressUrlFormat?