diff --git a/application/templates/deployment.yaml b/application/templates/deployment.yaml index 4f5bfd23..1f827f4f 100644 --- a/application/templates/deployment.yaml +++ b/application/templates/deployment.yaml @@ -285,6 +285,9 @@ spec: dnsConfig: {{ toYaml .Values.deployment.dnsConfig | indent 8 }} {{- end }} + {{- if .Values.deployment.dnsPolicy }} + dnsPolicy: {{ .Values.deployment.dnsPolicy }} + {{- end }} {{- if or (.Values.deployment.openshiftOAuthProxy.enabled) (.Values.deployment.volumes) (and (eq .Values.persistence.enabled true) (eq .Values.persistence.mountPVC true) )}} volumes: {{- if .Values.deployment.openshiftOAuthProxy.enabled }} diff --git a/application/values-test.yaml b/application/values-test.yaml index 5ab93b63..33e63bb8 100644 --- a/application/values-test.yaml +++ b/application/values-test.yaml @@ -12,6 +12,7 @@ deployment: options: - name: ndots value: '1' + dnsPolicy: ClusterFirst # By default deploymentStrategy is set to rollingUpdate with maxSurge of 25% and maxUnavailable of 25% # You can change type to `Recreate` or can uncomment `rollingUpdate` specification and adjust them to your usage. strategy: diff --git a/application/values.yaml b/application/values.yaml index 3569adb6..f119ff36 100644 --- a/application/values.yaml +++ b/application/values.yaml @@ -251,6 +251,9 @@ deployment: # options: # - name: ndots # value: '1' + # -- (string) DNS Policy. + # @section -- Deployment Parameters + dnsPolicy: ClusterFirst # -- (object) Startup probe. # @default -- See below # Must specify either one of the following field when enabled: httpGet, exec, tcpSocket, grpc