Helm chart: Support hostAliases (#16703)
diff --git a/helm/superset/Chart.yaml b/helm/superset/Chart.yaml
index 30a409e..ffc75f0 100644
--- a/helm/superset/Chart.yaml
+++ b/helm/superset/Chart.yaml
@@ -22,7 +22,7 @@
- name: craig-rueda
email: craig@craigrueda.com
url: https://github.com/craig-rueda
-version: 0.3.6
+version: 0.3.7
dependencies:
- name: postgresql
version: 10.2.0
diff --git a/helm/superset/templates/deployment-beat.yaml b/helm/superset/templates/deployment-beat.yaml
index 2775d28..fce5162 100644
--- a/helm/superset/templates/deployment-beat.yaml
+++ b/helm/superset/templates/deployment-beat.yaml
@@ -61,6 +61,9 @@
initContainers:
{{- tpl (toYaml .Values.supersetCeleryBeat.initContainers) . | nindent 6 }}
{{- end }}
+ {{- with .Values.hostAliases }}
+ hostAliases: {{ toYaml . | nindent 6 }}
+ {{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
diff --git a/helm/superset/templates/deployment-worker.yaml b/helm/superset/templates/deployment-worker.yaml
index 8bb2cc8..c458e10 100644
--- a/helm/superset/templates/deployment-worker.yaml
+++ b/helm/superset/templates/deployment-worker.yaml
@@ -62,6 +62,9 @@
initContainers:
{{- tpl (toYaml .Values.supersetWorker.initContainers) . | nindent 6 }}
{{- end }}
+ {{- with .Values.hostAliases }}
+ hostAliases: {{ toYaml . | nindent 6 }}
+ {{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
diff --git a/helm/superset/templates/deployment.yaml b/helm/superset/templates/deployment.yaml
index ec6b4f4..72a6303 100644
--- a/helm/superset/templates/deployment.yaml
+++ b/helm/superset/templates/deployment.yaml
@@ -65,6 +65,9 @@
initContainers:
{{- tpl (toYaml .Values.supersetNode.initContainers) . | nindent 6 }}
{{- end }}
+ {{- with .Values.hostAliases }}
+ hostAliases: {{ toYaml . | nindent 6 }}
+ {{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
diff --git a/helm/superset/values.yaml b/helm/superset/values.yaml
index c857777..fc427d2 100644
--- a/helm/superset/values.yaml
+++ b/helm/superset/values.yaml
@@ -184,6 +184,15 @@
# memory: 128Mi
##
+## Custom hostAliases for all superset pods
+## https://kubernetes.io/docs/tasks/network/customize-hosts-file-for-pods/
+hostAliases: []
+# - hostnames:
+# - nodns.my.lan
+# ip: 18.27.36.45
+
+
+##
## Superset node configuration
supersetNode:
command: