From efc89c58339dbce5f2f0eb04cd7bf148b754436a Mon Sep 17 00:00:00 2001 From: Rohit Ramkumar Date: Tue, 24 Oct 2017 15:37:11 -0700 Subject: [PATCH] Added functionality to replace default kube-dns deployment with a GKE specific one --- cluster/gce/container-linux/configure-helper.sh | 7 +++++++ cluster/gce/gci/configure-helper.sh | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/cluster/gce/container-linux/configure-helper.sh b/cluster/gce/container-linux/configure-helper.sh index fc2f635e831..8afaf794320 100755 --- a/cluster/gce/container-linux/configure-helper.sh +++ b/cluster/gce/container-linux/configure-helper.sh @@ -1282,6 +1282,13 @@ function start-kube-addons { setup-addon-manifests "addons" "dns" local -r kubedns_file="${dst_dir}/dns/kube-dns.yaml" mv "${dst_dir}/dns/kube-dns.yaml.in" "${kubedns_file}" + if [ -n "${CUSTOM_KUBE_DNS_YAML:-}" ]; then + # Replace with custom GKE kube-dns deployment. + cat > "${kubedns_file}" < "${kubedns_file}" <