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

[Improvement] Is it possible to dynamically add backend service to ingress with Kubernetes? #6102

Open
2 of 4 tasks
melin opened this issue Feb 27, 2024 · 2 comments
Open
2 of 4 tasks

Comments

@melin
Copy link

melin commented Feb 27, 2024

Code of Conduct

Search before asking

  • I have searched in the issues and found no similar issues.

What would you like to be improved?

spark on k8s runs multiple spark apps at the same time. proxy/[sparkappid] path, forwarding to different sparkapp ui console based on sparkappid. spark apps are dynamically added and decreased. ingress Dynamically adds spark svc.

sparkappid == spark svc name

https://matthewpalmer.net/kubernetes-app-developer/articles/kubernetes-ingress-guide-nginx-example.html

@pan3793

How should we improve?

No response

Are you willing to submit PR?

  • Yes. I would be willing to submit a PR with guidance from the Kyuubi community to improve.
  • No. I cannot submit a PR at this time.
@pan3793
Copy link
Member

pan3793 commented Mar 5, 2024

It can be achieved by implementing a KubernetesDriverCustomFeatureConfigStep, with an additional change SPARK-40763.

Kyuubi also implemented the Spark Web UI proxy in another approach #4795

@zwangsheng
Copy link
Contributor

zwangsheng commented Mar 6, 2024

My guess is that your requirement is to have an ingress as a proxy entry for all spark app ui, with each spark app configured with a subpath on ingress.

But for now we can't assume the spark service name, https://github.com/apache/spark/blob/36299f1b2bff8c892624bc5c0e4c00ea3f261532/resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/features/DriverServiceFeatureStep.scala#L42-L52.

The spark driver service name is not reachable for now, and SPARK-40763 try to fix. Without this patch, we hard to add ingress feature step in kyuubi to proxy spark ui.

If you have good idea, be willing to listen. :)

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

3 participants