diff --git a/charts/coredns/templates/deployment.yaml b/charts/coredns/templates/deployment.yaml index 7412e19..ba18cb1 100644 --- a/charts/coredns/templates/deployment.yaml +++ b/charts/coredns/templates/deployment.yaml @@ -143,6 +143,13 @@ spec: {{- if .Values.securityContext }} securityContext: {{- toYaml .Values.securityContext | nindent 10 }} +{{- end }} +{{- if .Values.dnsPolicy }} + dnsPolicy: {{ .Values.dnsPolicy }} +{{- end }} +{{- if .Values.dnsConfig }} + dnsConfig: +{{ toYaml .Values.dnsConfig | nindent 8 }} {{- end }} volumes: - name: config-volume diff --git a/charts/coredns/values.yaml b/charts/coredns/values.yaml index e7d21c2..bb5ff4b 100644 --- a/charts/coredns/values.yaml +++ b/charts/coredns/values.yaml @@ -199,6 +199,12 @@ topologySpreadConstraints: [] # Ref: https://kubernetes.io/docs/user-guide/node-selection/ nodeSelector: {} +# Configure pod DNS policy and config. +# dnsPolicy: None +# dnsConfig: +# nameservers: +# - 8.8.8.8 + # expects input structure as per specification https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#toleration-v1-core # for example: # tolerations: