Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
f8d2b6b9
Unverified
Commit
f8d2b6b9
authored
May 16, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
May 16, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #77918 from mborsz/coredns
Make dns memory limit configurable
parents
6a9ecf71
59af63c6
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
15 additions
and
6 deletions
+15
-6
coredns.yaml.base
cluster/addons/dns/coredns/coredns.yaml.base
+1
-1
coredns.yaml.in
cluster/addons/dns/coredns/coredns.yaml.in
+1
-1
coredns.yaml.sed
cluster/addons/dns/coredns/coredns.yaml.sed
+1
-1
transforms2salt.sed
cluster/addons/dns/coredns/transforms2salt.sed
+1
-0
transforms2sed.sed
cluster/addons/dns/coredns/transforms2sed.sed
+1
-0
kube-dns.yaml.base
cluster/addons/dns/kube-dns/kube-dns.yaml.base
+1
-1
kube-dns.yaml.in
cluster/addons/dns/kube-dns/kube-dns.yaml.in
+1
-1
kube-dns.yaml.sed
cluster/addons/dns/kube-dns/kube-dns.yaml.sed
+1
-1
transforms2salt.sed
cluster/addons/dns/kube-dns/transforms2salt.sed
+1
-0
transforms2sed.sed
cluster/addons/dns/kube-dns/transforms2sed.sed
+1
-0
config-default.sh
cluster/gce/config-default.sh
+1
-0
config-test.sh
cluster/gce/config-test.sh
+1
-0
configure-helper.sh
cluster/gce/gci/configure-helper.sh
+2
-0
util.sh
cluster/gce/util.sh
+1
-0
No files found.
cluster/addons/dns/coredns/coredns.yaml.base
View file @
f8d2b6b9
...
...
@@ -120,7 +120,7 @@ spec:
imagePullPolicy: IfNotPresent
resources:
limits:
memory:
170Mi
memory:
__PILLAR__DNS__MEMORY__LIMIT__
requests:
cpu: 100m
memory: 70Mi
...
...
cluster/addons/dns/coredns/coredns.yaml.in
View file @
f8d2b6b9
...
...
@@ -120,7 +120,7 @@ spec:
imagePullPolicy: IfNotPresent
resources:
limits:
memory:
170Mi
memory:
{{ pillar['dns_memory_limit'] }}
requests:
cpu: 100m
memory: 70Mi
...
...
cluster/addons/dns/coredns/coredns.yaml.sed
View file @
f8d2b6b9
...
...
@@ -120,7 +120,7 @@ spec:
i
magePullPolicy: IfNotPresent
re
s
o
urces:
limits:
mem
o
ry:
170Mi
mem
o
ry:
$DNS_MEMORY_LIMIT
requests:
cpu: 100m
mem
o
r
y
:
70Mi
...
...
cluster/addons/dns/coredns/transforms2salt.sed
View file @
f8d2b6b9
s
/
__PILLAR__DNS__SERVER__
/
{{ pillar['dns_server'] }}
/
g
s
/
__PILLAR__DNS__DOMAIN__
/
{{ pillar['dns_domain'] }}
/
g
s
/
__PILLAR__CLUSTER_CIDR__
/
{{ pillar['service_cluster_ip_range'] }}
/
g
s
/
__PILLAR__DNS__MEMORY__LIMIT__
/
{{ pillar['dns_memory_limit'] }}
/
g
s
/
__MACHINE_GENERATED_WARNING__
/
Warning: This is a file generated from the base underscore template file: __SOURCE_FILENAME__
/
g
cluster/addons/dns/coredns/transforms2sed.sed
View file @
f8d2b6b9
s
/
__PILLAR__DNS__SERVER__
/
$DNS_SERVER_IP
/
g
s
/
__PILLAR__DNS__DOMAIN__
/
$DNS_DOMAIN
/
g
s
/
__PILLAR__CLUSTER_CIDR__
/
$SERVICE_CLUSTER_IP_RANGE
/
g
s
/
__PILLAR__DNS__MEMORY__LIMIT__
/
$DNS_MEMORY_LIMIT
/
g
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
View file @
f8d2b6b9
...
...
@@ -106,7 +106,7 @@ spec:
# guaranteed class. Currently, this container falls into the
# "burstable" category so the kubelet doesn't backoff from restarting it.
limits:
memory:
170Mi
memory:
__PILLAR__DNS__MEMORY__LIMIT__
requests:
cpu: 100m
memory: 70Mi
...
...
cluster/addons/dns/kube-dns/kube-dns.yaml.in
View file @
f8d2b6b9
...
...
@@ -106,7 +106,7 @@ spec:
# guaranteed class. Currently, this container falls into the
# "burstable" category so the kubelet doesn't backoff from restarting it.
limits:
memory:
170Mi
memory:
{{ pillar['dns_memory_limit'] }}
requests:
cpu: 100m
memory: 70Mi
...
...
cluster/addons/dns/kube-dns/kube-dns.yaml.sed
View file @
f8d2b6b9
...
...
@@ -106,7 +106,7 @@ spec:
# guaranteed class. Currently, this container falls into the
# "burstable" category so the kubelet doesn't backoff from restarting it.
li
mits:
memor
y
:
170Mi
memor
y
:
$DNS_MEMORY_LIMIT
requests
:
cpu
:
100
m
memor
y
:
70Mi
...
...
cluster/addons/dns/kube-dns/transforms2salt.sed
View file @
f8d2b6b9
s
/
__PILLAR__DNS__SERVER__
/
{{ pillar['dns_server'] }}
/
g
s
/
__PILLAR__DNS__DOMAIN__
/
{{ pillar['dns_domain'] }}
/
g
s
/
__PILLAR__CLUSTER_CIDR__
/
{{ pillar['service_cluster_ip_range'] }}
/
g
s
/
__PILLAR__DNS__MEMORY__LIMIT__
/
{{ pillar['dns_memory_limit'] }}
/
g
s
/
__MACHINE_GENERATED_WARNING__
/
Warning: This is a file generated from the base underscore template file: __SOURCE_FILENAME__
/
g
cluster/addons/dns/kube-dns/transforms2sed.sed
View file @
f8d2b6b9
s
/
__PILLAR__DNS__SERVER__
/
$DNS_SERVER_IP
/
g
s
/
__PILLAR__DNS__DOMAIN__
/
$DNS_DOMAIN
/
g
s
/
__PILLAR__CLUSTER_CIDR__
/
$SERVICE_CLUSTER_IP_RANGE
/
g
s
/
__PILLAR__DNS__MEMORY__LIMIT__
/
$DNS_MEMORY_LIMIT
/
g
s
/
__MACHINE_GENERATED_WARNING__
/
Warning: This is a file generated from the base underscore template file: __SOURCE_FILENAME__
/
g
cluster/gce/config-default.sh
View file @
f8d2b6b9
...
...
@@ -254,6 +254,7 @@ CLUSTER_DNS_CORE_DNS="${CLUSTER_DNS_CORE_DNS:-true}"
ENABLE_CLUSTER_DNS
=
"
${
KUBE_ENABLE_CLUSTER_DNS
:-
true
}
"
DNS_SERVER_IP
=
"
${
KUBE_DNS_SERVER_IP
:-
10
.0.0.10
}
"
DNS_DOMAIN
=
"
${
KUBE_DNS_DOMAIN
:-
cluster
.local
}
"
DNS_MEMORY_LIMIT
=
"
${
KUBE_DNS_MEMORY_LIMIT
:-
170Mi
}
"
# Optional: Enable DNS horizontal autoscaler
ENABLE_DNS_HORIZONTAL_AUTOSCALER
=
"
${
KUBE_ENABLE_DNS_HORIZONTAL_AUTOSCALER
:-
true
}
"
...
...
cluster/gce/config-test.sh
View file @
f8d2b6b9
...
...
@@ -285,6 +285,7 @@ ENABLE_CLUSTER_DNS="${KUBE_ENABLE_CLUSTER_DNS:-true}"
DNS_SERVER_IP
=
"10.0.0.10"
LOCAL_DNS_IP
=
"
${
KUBE_LOCAL_DNS_IP
:-
169
.254.20.10
}
"
DNS_DOMAIN
=
"cluster.local"
DNS_MEMORY_LIMIT
=
"
${
KUBE_DNS_MEMORY_LIMIT
:-
170Mi
}
"
# Optional: Enable DNS horizontal autoscaler
ENABLE_DNS_HORIZONTAL_AUTOSCALER
=
"
${
KUBE_ENABLE_DNS_HORIZONTAL_AUTOSCALER
:-
true
}
"
...
...
cluster/gce/gci/configure-helper.sh
View file @
f8d2b6b9
...
...
@@ -2376,6 +2376,7 @@ function setup-coredns-manifest {
sed
-i
-e
"s@{{ *pillar
\[
'dns_domain'
\]
*}}@
${
DNS_DOMAIN
}
@g"
"
${
coredns_file
}
"
sed
-i
-e
"s@{{ *pillar
\[
'dns_server'
\]
*}}@
${
DNS_SERVER_IP
}
@g"
"
${
coredns_file
}
"
sed
-i
-e
"s@{{ *pillar
\[
'service_cluster_ip_range'
\]
*}}@
${
SERVICE_CLUSTER_IP_RANGE
}
@g"
"
${
coredns_file
}
"
sed
-i
-e
"s@{{ *pillar
\[
'dns_memory_limit'
\]
*}}@
${
DNS_MEMORY_LIMIT
}
@g"
"
${
coredns_file
}
"
if
[[
"
${
ENABLE_DNS_HORIZONTAL_AUTOSCALER
:-}
"
==
"true"
]]
;
then
setup-addon-manifests
"addons"
"dns-horizontal-autoscaler"
"gce"
...
...
@@ -2427,6 +2428,7 @@ EOF
# Replace the salt configurations with variable values.
sed
-i
-e
"s@{{ *pillar
\[
'dns_domain'
\]
*}}@
${
DNS_DOMAIN
}
@g"
"
${
kubedns_file
}
"
sed
-i
-e
"s@{{ *pillar
\[
'dns_server'
\]
*}}@
${
DNS_SERVER_IP
}
@g"
"
${
kubedns_file
}
"
sed
-i
-e
"s@{{ *pillar
\[
'dns_memory_limit'
\]
*}}@
${
DNS_MEMORY_LIMIT
}
@g"
"
${
kubedns_file
}
"
if
[[
"
${
ENABLE_DNS_HORIZONTAL_AUTOSCALER
:-}
"
==
"true"
]]
;
then
setup-addon-manifests
"addons"
"dns-horizontal-autoscaler"
"gce"
...
...
cluster/gce/util.sh
View file @
f8d2b6b9
...
...
@@ -1123,6 +1123,7 @@ ENABLE_NODELOCAL_DNS: $(yaml-quote ${ENABLE_NODELOCAL_DNS:-false})
DNS_SERVER_IP:
$(
yaml-quote
${
DNS_SERVER_IP
:-})
LOCAL_DNS_IP:
$(
yaml-quote
${
LOCAL_DNS_IP
:-})
DNS_DOMAIN:
$(
yaml-quote
${
DNS_DOMAIN
:-})
DNS_MEMORY_LIMIT:
$(
yaml-quote
${
DNS_MEMORY_LIMIT
:-})
ENABLE_DNS_HORIZONTAL_AUTOSCALER:
$(
yaml-quote
${
ENABLE_DNS_HORIZONTAL_AUTOSCALER
:-
false
})
KUBE_PROXY_DAEMONSET:
$(
yaml-quote
${
KUBE_PROXY_DAEMONSET
:-
false
})
KUBE_PROXY_TOKEN:
$(
yaml-quote
${
KUBE_PROXY_TOKEN
:-})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment