Skip to content

Commit f8d2b6b

Browse files
authored
Merge pull request kubernetes#77918 from mborsz/coredns
Make dns memory limit configurable
2 parents 6a9ecf7 + 59af63c commit f8d2b6b

14 files changed

+15
-6
lines changed

cluster/addons/dns/coredns/coredns.yaml.base

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ spec:
120120
imagePullPolicy: IfNotPresent
121121
resources:
122122
limits:
123-
memory: 170Mi
123+
memory: __PILLAR__DNS__MEMORY__LIMIT__
124124
requests:
125125
cpu: 100m
126126
memory: 70Mi

cluster/addons/dns/coredns/coredns.yaml.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ spec:
120120
imagePullPolicy: IfNotPresent
121121
resources:
122122
limits:
123-
memory: 170Mi
123+
memory: {{ pillar['dns_memory_limit'] }}
124124
requests:
125125
cpu: 100m
126126
memory: 70Mi

cluster/addons/dns/coredns/coredns.yaml.sed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ spec:
120120
imagePullPolicy: IfNotPresent
121121
resources:
122122
limits:
123-
memory: 170Mi
123+
memory: $DNS_MEMORY_LIMIT
124124
requests:
125125
cpu: 100m
126126
memory: 70Mi
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
s/__PILLAR__DNS__SERVER__/{{ pillar['dns_server'] }}/g
22
s/__PILLAR__DNS__DOMAIN__/{{ pillar['dns_domain'] }}/g
33
s/__PILLAR__CLUSTER_CIDR__/{{ pillar['service_cluster_ip_range'] }}/g
4+
s/__PILLAR__DNS__MEMORY__LIMIT__/{{ pillar['dns_memory_limit'] }}/g
45
s/__MACHINE_GENERATED_WARNING__/Warning: This is a file generated from the base underscore template file: __SOURCE_FILENAME__/g
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
s/__PILLAR__DNS__SERVER__/$DNS_SERVER_IP/g
22
s/__PILLAR__DNS__DOMAIN__/$DNS_DOMAIN/g
33
s/__PILLAR__CLUSTER_CIDR__/$SERVICE_CLUSTER_IP_RANGE/g
4+
s/__PILLAR__DNS__MEMORY__LIMIT__/$DNS_MEMORY_LIMIT/g
45
s/__MACHINE_GENERATED_WARNING__/Warning: This is a file generated from the base underscore template file: __SOURCE_FILENAME__/g

cluster/addons/dns/kube-dns/kube-dns.yaml.base

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ spec:
106106
# guaranteed class. Currently, this container falls into the
107107
# "burstable" category so the kubelet doesn't backoff from restarting it.
108108
limits:
109-
memory: 170Mi
109+
memory: __PILLAR__DNS__MEMORY__LIMIT__
110110
requests:
111111
cpu: 100m
112112
memory: 70Mi

cluster/addons/dns/kube-dns/kube-dns.yaml.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ spec:
106106
# guaranteed class. Currently, this container falls into the
107107
# "burstable" category so the kubelet doesn't backoff from restarting it.
108108
limits:
109-
memory: 170Mi
109+
memory: {{ pillar['dns_memory_limit'] }}
110110
requests:
111111
cpu: 100m
112112
memory: 70Mi

cluster/addons/dns/kube-dns/kube-dns.yaml.sed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ spec:
106106
# guaranteed class. Currently, this container falls into the
107107
# "burstable" category so the kubelet doesn't backoff from restarting it.
108108
limits:
109-
memory: 170Mi
109+
memory: $DNS_MEMORY_LIMIT
110110
requests:
111111
cpu: 100m
112112
memory: 70Mi
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
s/__PILLAR__DNS__SERVER__/{{ pillar['dns_server'] }}/g
22
s/__PILLAR__DNS__DOMAIN__/{{ pillar['dns_domain'] }}/g
33
s/__PILLAR__CLUSTER_CIDR__/{{ pillar['service_cluster_ip_range'] }}/g
4+
s/__PILLAR__DNS__MEMORY__LIMIT__/{{ pillar['dns_memory_limit'] }}/g
45
s/__MACHINE_GENERATED_WARNING__/Warning: This is a file generated from the base underscore template file: __SOURCE_FILENAME__/g
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
s/__PILLAR__DNS__SERVER__/$DNS_SERVER_IP/g
22
s/__PILLAR__DNS__DOMAIN__/$DNS_DOMAIN/g
33
s/__PILLAR__CLUSTER_CIDR__/$SERVICE_CLUSTER_IP_RANGE/g
4+
s/__PILLAR__DNS__MEMORY__LIMIT__/$DNS_MEMORY_LIMIT/g
45
s/__MACHINE_GENERATED_WARNING__/Warning: This is a file generated from the base underscore template file: __SOURCE_FILENAME__/g

0 commit comments

Comments
 (0)