From 8bdc4cfe8e526d6dff14621e16437ca6f5260024 Mon Sep 17 00:00:00 2001 From: Dmitrii Kabanov Date: Thu, 4 Oct 2018 10:15:10 -0700 Subject: [PATCH] CoreDNS: add configurable replicas This patchset makes possible to set/update the quantity of replicas for CoreDNS through the variable in values.yaml. Change-Id: I9a6ad0f7f2fe95b7d8cfd2ac5f4c6e235e8bb1a4 --- charts/coredns/templates/deployment.yaml | 2 +- charts/coredns/values.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/coredns/templates/deployment.yaml b/charts/coredns/templates/deployment.yaml index 2e47fe31..e83f7611 100644 --- a/charts/coredns/templates/deployment.yaml +++ b/charts/coredns/templates/deployment.yaml @@ -24,7 +24,7 @@ metadata: {{ .Values.service.name }}: enabled kubernetes.io/name: "CoreDNS" spec: - replicas: 2 + replicas: {{ .Values.pod.replicas.coredns }} strategy: type: RollingUpdate rollingUpdate: diff --git a/charts/coredns/values.yaml b/charts/coredns/values.yaml index a021f76f..bdb06049 100644 --- a/charts/coredns/values.yaml +++ b/charts/coredns/values.yaml @@ -53,6 +53,8 @@ pod: limits: memory: "1024Mi" cpu: "2000m" + replicas: + coredns: 3 monitoring: prometheus: