From 6491a007b639b772f6a367e32dcff158803e6bf2 Mon Sep 17 00:00:00 2001 From: Oleh Ozimok Date: Tue, 15 Aug 2017 03:12:41 +0300 Subject: [PATCH] fix coreos dns policy in cluster service mode (#1651) * fix coreos dns policy in cluster service mode * Bump chart version --- stable/coredns/Chart.yaml | 2 +- stable/coredns/templates/deployment.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/stable/coredns/Chart.yaml b/stable/coredns/Chart.yaml index 783ecd7cb0..c9a5645fa5 100644 --- a/stable/coredns/Chart.yaml +++ b/stable/coredns/Chart.yaml @@ -1,5 +1,5 @@ name: coredns -version: 0.2.0 +version: 0.3.0 description: CoreDNS is a DNS server that chains middleware and provides Kubernetes DNS Services keywords: - coredns diff --git a/stable/coredns/templates/deployment.yaml b/stable/coredns/templates/deployment.yaml index eb9fbba5a1..1cac0c96bc 100644 --- a/stable/coredns/templates/deployment.yaml +++ b/stable/coredns/templates/deployment.yaml @@ -37,6 +37,9 @@ spec: scheduler.alpha.kubernetes.io/tolerations: '[{"key":"CriticalAddonsOnly", "operator":"Exists"}]' {{- end }} spec: + {{- if .Values.isClusterService }} + dnsPolicy: Default + {{- end }} containers: - name: "coredns" image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"