spark-operator icon indicating copy to clipboard operation
spark-operator copied to clipboard

Use custom spark app name in spark.ui.proxyBase

Open jijosg opened this issue 4 years ago • 4 comments

Hi,

I have configured the ingressUrlFormat=<hostname>/spark/{{$appName}}(/|$)(.*)

I am trying to submit a SparkApplication with following config where a new sparkapp name will be created each time its submitted and want to use this newly created sparkapp name in the spark.ui.proxyBase

metadata:
    generateName: spark-pi-example-
spec:
    sparkUIOptions:
        ingressAnnotations:
          nginx.ingress.kubernetes.io/rewrite-target: /$2
    sparkConf:
        spark.ui.proxyRedirectUri                   : <hostname>
        spark.ui.proxyBase                          :  /spark/<spark-app-name>

How can i dynamically insert <spark-app-name> in spark.ui.proxyBase ?

What are some of the other options for ingressUrlFormat, ie other than {{$appName}} & {{$appNamespace}}

jijosg avatar Mar 24 '21 06:03 jijosg

I also have the same problem, Did you solve it?

ZPerling avatar May 13 '21 02:05 ZPerling

No still facing the issue havent tried the latest chart though

jijosg avatar Sep 21 '21 05:09 jijosg

From reading https://github.com/GoogleCloudPlatform/spark-on-k8s-operator/blob/5f2efd4ff97e7c0bfdb726a066118d3401576730/pkg/controller/sparkapplication/sparkui.go#L46-L63 - it looks like appName and appNamespace are the only two options.

matschaffer-roblox avatar Jun 04 '23 21:06 matschaffer-roblox

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.

github-actions[bot] avatar Oct 13 '24 20:10 github-actions[bot]

This issue has been automatically closed because it has not had recent activity. Please comment "/reopen" to reopen it.

github-actions[bot] avatar Nov 02 '24 20:11 github-actions[bot]