-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Removal Of Spark History service [ui-svc] #1031
Comments
@nileshbhadana The driver pod sticks around even after completed. The service and driver pod will both go away when you delete the spark application. |
@jkleckner I don't want the service to be created. |
@nileshbhadana I think there should be no such configuration, but you modify the code of operoter and implement this function through a custom operator。 If you can, you can try to comment the following code in service, err := createSparkUIService(app, c.kubeClient)
if err != nil {
glog.Errorf("failed to create UI service for SparkApplication %s/%s: %v", app.Namespace, app.Name, err)
} else {
app.Status.DriverInfo.WebUIServiceName = service.serviceName
app.Status.DriverInfo.WebUIPort = service.servicePort
app.Status.DriverInfo.WebUIAddress = fmt.Sprintf("%s:%d", service.serviceIP, app.Status.DriverInfo.WebUIPort)
// Create UI Ingress if ingress-format is set.
if c.ingressURLFormat != "" {
ingress, err := createSparkUIIngress(app, *service, c.ingressURLFormat, c.kubeClient)
if err != nil {
glog.Errorf("failed to create UI Ingress for SparkApplication %s/%s: %v", app.Namespace, app.Name, err)
} else {
app.Status.DriverInfo.WebUIIngressAddress = ingress.ingressURL
app.Status.DriverInfo.WebUIIngressName = ingress.ingressName
}
}
} But I am not sure if it will cause other problems 😂 |
Hi @kz33 @jkleckner, Would be happy to contribute a PR for the same (would be my first PR in open-source project). |
When spark job is created it creates a k8s service for Spark UI.
Is there any configuration by which we can stop this service from getting created ?
Steps to reproduce:
- Run a spark job
- Wait for it to complete and see
kubectl get svc -n <namespace>
Thanks in Advance
The text was updated successfully, but these errors were encountered: