Skip to content

Commit

Permalink
feat: add support for configuring Spark pod labels and annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Yi Chen <[email protected]>
  • Loading branch information
ChenYi015 committed Nov 21, 2024
1 parent a69de89 commit 640d91b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
18 changes: 18 additions & 0 deletions charts/zeppelin/templates/interpreter/spark/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ data:
{{- end }}
driver-pod-template.yaml: |
metadata:
{{- with .Values.interpreter.spark.labels }}
labels:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.interpreter.spark.annotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
containers:
- name: spark-kubernetes-driver
Expand Down Expand Up @@ -86,6 +95,15 @@ data:
{{- end }}
executor-pod-template.yaml: |
metadata:
{{- with .Values.interpreter.spark.labels }}
labels:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.interpreter.spark.annotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
containers:
- name: spark-kubernetes-executor
Expand Down
14 changes: 10 additions & 4 deletions charts/zeppelin/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,16 +185,22 @@ interpreter:
spark.kubernetes.driver.podTemplateFile: file:///opt/spark/conf/driver-pod-template.yaml
spark.kubernetes.executor.podTemplateFile: file:///opt/spark/conf/executor-pod-template.yaml

# -- Volumes for Spark executor pods.
# -- Extra labels for Spark pods.
labels: {}

# -- Extra annotations for Spark pods.
annotations: {}

# -- Volumes for Spark pods.
volumes: []

# -- Environment variables for Spark executor containers.
# -- Environment variables for Spark containers.
env: []

# -- Environment variable sources for Spark executor containers.
# -- Environment variable sources for Spark containers.
envFrom: []

# -- Volume mounts for Zeppelin interpreter containers.
# -- Volume mounts for Spark containers.
volumeMounts: []

# -- Extra labels for Zeppelin interpreter pods.
Expand Down

0 comments on commit 640d91b

Please sign in to comment.