Browse Source

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
Dmitrii Kabanov 6 months ago
parent
commit
8bdc4cfe8e
2 changed files with 3 additions and 1 deletions
  1. 1
    1
      charts/coredns/templates/deployment.yaml
  2. 2
    0
      charts/coredns/values.yaml

+ 1
- 1
charts/coredns/templates/deployment.yaml View File

@@ -24,7 +24,7 @@ metadata:
24 24
     {{ .Values.service.name }}: enabled
25 25
     kubernetes.io/name: "CoreDNS"
26 26
 spec:
27
-  replicas: 2
27
+  replicas: {{ .Values.pod.replicas.coredns }}
28 28
   strategy:
29 29
     type: RollingUpdate
30 30
     rollingUpdate:

+ 2
- 0
charts/coredns/values.yaml View File

@@ -53,6 +53,8 @@ pod:
53 53
       limits:
54 54
         memory: "1024Mi"
55 55
         cpu: "2000m"
56
+  replicas:
57
+    coredns: 3
56 58
 
57 59
 monitoring:
58 60
   prometheus:

Loading…
Cancel
Save