[bitnami/spark] Added hostNetwork in the spark charts (#5705)

* Added hostNetwork in the spark charts

Signed-off-by: Rogier Dikkes <1867776+a-nldisr@users.noreply.github.com>

* moved the end of the if statement to fix syntax.

Signed-off-by: Rogier Dikkes <1867776+a-nldisr@users.noreply.github.com>

* Bumped version higher for the spark chart version

Signed-off-by: Rogier Dikkes <1867776+a-nldisr@users.noreply.github.com>

* Update bitnami/spark/Chart.yaml

Raised version to 5.3.0

Co-authored-by: Miguel Ángel Cabrera Miñagorri <devgorri@gmail.com>

Co-authored-by: Miguel Ángel Cabrera Miñagorri <devgorri@gmail.com>
Co-authored-by: Miguel Ángel Cabrera Miñagorri <mcabrera@vmware.com>
This commit is contained in:
Rogier Dikkes
2021-03-09 09:07:54 +01:00
committed by GitHub
parent b0bd9a6a8e
commit 4a0bf2fd1f
5 changed files with 24 additions and 10 deletions

View File

@@ -22,4 +22,4 @@ name: spark
sources:
- https://github.com/bitnami/bitnami-docker-spark
- https://spark.apache.org/
version: 5.2.3
version: 5.3.0

View File

@@ -67,13 +67,14 @@ The following tables lists the configurable parameters of the spark chart and th
### Spark parameters
| Parameter | Description | Default |
|---------------------|--------------------------------------------------|---------------------------------------------------------|
| `image.registry` | spark image registry | `docker.io` |
| `image.repository` | spark Image name | `bitnami/spark` |
| `image.tag` | spark Image tag | `{TAG_NAME}` |
| `image.pullPolicy` | spark image pull policy | `IfNotPresent` |
| `image.pullSecrets` | Specify docker-registry secret names as an array | `[]` (does not add image pull secrets to deployed pods) |
| Parameter | Description | Default |
|---------------------|-----------------------------------------------------------------------------------------|---------------------------------------------------------|
| `image.registry` | spark image registry | `docker.io` |
| `image.repository` | spark Image name | `bitnami/spark` |
| `image.tag` | spark Image tag | `{TAG_NAME}` |
| `image.pullPolicy` | spark image pull policy | `IfNotPresent` |
| `image.pullSecrets` | Specify docker-registry secret names as an array | `[]` (does not add image pull secrets to deployed pods) |
| `hostNetwork` | Use Host-Network for the PODs (if true, also dnsPolicy: ClusterFirstWithHostNet is set) | `false` |
### Spark master parameters

View File

@@ -59,6 +59,10 @@ spec:
seLinuxOptions: {{- include "common.tplvalues.render" (dict "value" .Values.master.securityContext.seLinuxOptions "context" $) | nindent 10 }}
{{- end }}
{{- end }}
{{- if .Values.hostNetwork }}
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
{{- end }}
containers:
- name: spark-master
image: {{ template "spark.image" . }}
@@ -188,4 +192,4 @@ spec:
{{- end }}
{{- if .Values.master.extraVolumes }}
{{- tpl (toYaml .Values.master.extraVolumes) $ | nindent 8 }}
{{- end }}
{{- end }}

View File

@@ -59,6 +59,10 @@ spec:
seLinuxOptions: {{- include "common.tplvalues.render" (dict "value" .Values.worker.securityContext.seLinuxOptions "context" $) | nindent 10 }}
{{- end }}
{{- end }}
{{- if .Values.hostNetwork }}
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
{{- end }}
containers:
- name: spark-worker
image: {{ template "spark.image" . }}
@@ -209,4 +213,4 @@ spec:
{{- end }}
{{- if .Values.worker.extraVolumes }}
{{- tpl (toYaml .Values.worker.extraVolumes) $ | nindent 8 }}
{{- end }}
{{- end }}

View File

@@ -29,6 +29,11 @@ image:
##
debug: false
## Enable HOST Network
## If hostNetwork true -> dnsPolicy is set to ClusterFirstWithHostNet
##
hostNetwork: false
## Force target Kubernetes version (using Helm capabilites if not set)
##
kubeVersion: