|
@@ -30,7 +30,13 @@ spec:
|
|
{{- include "common.labels.selectorLabels" . | nindent 8 }}
|
|
{{- include "common.labels.selectorLabels" . | nindent 8 }}
|
|
annotations: {{ include "common.annotations" . | nindent 8 }}
|
|
annotations: {{ include "common.annotations" . | nindent 8 }}
|
|
spec:
|
|
spec:
|
|
- hostNetwork: {{ .Values.hostNetwork }}
|
|
|
|
|
|
+ {{ if .Values.hostNetwork }}
|
|
|
|
+ hostNetwork: true
|
|
|
|
+ dnsPoliy: ClusterFirstWithHostNet
|
|
|
|
+ {{ else }}
|
|
|
|
+ hostNetwork: false
|
|
|
|
+ dnsPoliy: ClusterFirst
|
|
|
|
+ {{ end }}
|
|
initContainers:
|
|
initContainers:
|
|
- name: init-postgresdb
|
|
- name: init-postgresdb
|
|
image: {{ template "postgres.imageName" . }}
|
|
image: {{ template "postgres.imageName" . }}
|