diff --git a/bitnami/spark/Chart.yaml b/bitnami/spark/Chart.yaml index 656fa7104..fc72573eb 100644 --- a/bitnami/spark/Chart.yaml +++ b/bitnami/spark/Chart.yaml @@ -21,4 +21,4 @@ name: spark sources: - https://github.com/bitnami/bitnami-docker-spark - https://spark.apache.org/ -version: 4.0.0 +version: 4.1.0 diff --git a/bitnami/spark/README.md b/bitnami/spark/README.md index 9ef19678c..616758315 100644 --- a/bitnami/spark/README.md +++ b/bitnami/spark/README.md @@ -67,6 +67,7 @@ The following tables lists the configurable parameters of the spark chart and th | `master.securityContext.fsGroup` | Group ID for the container | `1001` | | `master.securityContext.runAsUser` | User ID for the container | `1001` | | `master.podAnnotations` | Annotations for pods in StatefulSet | `{}` (The value is evaluated as a template) | +| `master.extraPodLabels` | Extra labels for pods in StatefulSet | `{}` (The value is evaluated as a template) | | `master.nodeSelector` | Node affinity policy | `{}` (The value is evaluated as a template) | | `master.tolerations` | Tolerations for pod assignment | `[]` (The value is evaluated as a template) | | `master.affinity` | Affinity for pod assignment | `{}` (The value is evaluated as a template) | @@ -103,6 +104,7 @@ The following tables lists the configurable parameters of the spark chart and th | `worker.securityContext.fsGroup` | Group ID for the container | `1001` | | `worker.securityContext.runAsUser` | User ID for the container | `1001` | | `worker.podAnnotations` | Annotations for pods in StatefulSet | `{}` | +| `worker.extraPodLabels` | Extra labels for pods in StatefulSet | `{}` (The value is evaluated as a template) | | `worker.nodeSelector` | Node labels for pod assignment. Used as a template from the values. | `{}` | | `worker.tolerations` | Toleration labels for pod assignment | `[]` | | `worker.affinity` | Affinity and AntiAffinity rules for pod assignment | `{}` | diff --git a/bitnami/spark/templates/statefulset-master.yaml b/bitnami/spark/templates/statefulset-master.yaml index be88a1348..94ed02301 100644 --- a/bitnami/spark/templates/statefulset-master.yaml +++ b/bitnami/spark/templates/statefulset-master.yaml @@ -14,6 +14,9 @@ spec: metadata: labels: {{- include "common.labels.standard" . | nindent 8 }} app.kubernetes.io/component: master + {{- if .Values.master.extraPodLabels }} + {{- include "common.tplvalues.render" (dict "value" .Values.master.extraPodLabels "context" $) | nindent 8 }} + {{- end }} {{- if .Values.master.podAnnotations }} annotations: {{- include "common.tplvalues.render" (dict "value" .Values.master.podAnnotations "context" $) | nindent 8 }} {{- end }} diff --git a/bitnami/spark/templates/statefulset-worker.yaml b/bitnami/spark/templates/statefulset-worker.yaml index e72b6cc37..e7d6c8f60 100644 --- a/bitnami/spark/templates/statefulset-worker.yaml +++ b/bitnami/spark/templates/statefulset-worker.yaml @@ -14,6 +14,9 @@ spec: metadata: labels: {{- include "common.labels.standard" . | nindent 8 }} app.kubernetes.io/component: worker + {{- if .Values.worker.extraPodLabels }} + {{- include "common.tplvalues.render" (dict "value" .Values.worker.extraPodLabels "context" $) | nindent 8 }} + {{- end }} {{- if .Values.worker.podAnnotations }} annotations: {{- include "common.tplvalues.render" (dict "value" .Values.worker.podAnnotations "context" $) | nindent 8 }} {{- end }} diff --git a/bitnami/spark/values-production.yaml b/bitnami/spark/values-production.yaml index e527ebec7..106603679 100644 --- a/bitnami/spark/values-production.yaml +++ b/bitnami/spark/values-production.yaml @@ -78,6 +78,11 @@ master: ## podAnnotations: {} + ## Labes to add to the statefulset + ## + ## + extraPodLabels: {} + ## Node labels for pod assignment ## Ref: https://kubernetes.io/docs/user-guide/node-selection/ ## @@ -186,6 +191,11 @@ worker: ## podAnnotations: {} + ## Labes to add to the statefulset + ## + ## + extraPodLabels: {} + ## Node labels for pod assignment ## Ref: https://kubernetes.io/docs/user-guide/node-selection/ ## diff --git a/bitnami/spark/values.yaml b/bitnami/spark/values.yaml index 9c35facac..f20ec4929 100644 --- a/bitnami/spark/values.yaml +++ b/bitnami/spark/values.yaml @@ -78,6 +78,11 @@ master: ## podAnnotations: {} + ## Labes to add to the statefulset + ## + ## + extraPodLabels: {} + ## Node labels for pod assignment ## Ref: https://kubernetes.io/docs/user-guide/node-selection/ ## @@ -186,6 +191,11 @@ worker: ## podAnnotations: {} + ## Labes to add to the statefulset + ## + ## + extraPodLabels: {} + ## Node labels for pod assignment ## Ref: https://kubernetes.io/docs/user-guide/node-selection/ ##