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
f139645c
Unverified
Commit
f139645c
authored
Jan 24, 2017
by
Jordan Liggitt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make kube-dns mount optional configmap
parent
0bb31560
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
12 deletions
+36
-12
kubedns-controller.yaml.base
cluster/addons/dns/kubedns-controller.yaml.base
+12
-4
kubedns-controller.yaml.in
cluster/addons/dns/kubedns-controller.yaml.in
+12
-4
kubedns-controller.yaml.sed
cluster/addons/dns/kubedns-controller.yaml.sed
+12
-4
No files found.
cluster/addons/dns/kubedns-controller.yaml.base
View file @
f139645c
...
@@ -45,9 +45,14 @@ spec:
...
@@ -45,9 +45,14 @@ spec:
scheduler.alpha.kubernetes.io/critical-pod: ''
scheduler.alpha.kubernetes.io/critical-pod: ''
scheduler.alpha.kubernetes.io/tolerations: '[{"key":"CriticalAddonsOnly", "operator":"Exists"}]'
scheduler.alpha.kubernetes.io/tolerations: '[{"key":"CriticalAddonsOnly", "operator":"Exists"}]'
spec:
spec:
volumes:
- name: kube-dns-config
configMap:
name: kube-dns
optional: true
containers:
containers:
- name: kubedns
- name: kubedns
image: gcr.io/google_containers/k8s-dns-kube-dns-amd64:1.1
1.0
image: gcr.io/google_containers/k8s-dns-kube-dns-amd64:1.1
2.1
resources:
resources:
# TODO: Set memory limits when we've profiled the container for large
# TODO: Set memory limits when we've profiled the container for large
# clusters, then set request = limit to keep this container in
# clusters, then set request = limit to keep this container in
...
@@ -79,7 +84,7 @@ spec:
...
@@ -79,7 +84,7 @@ spec:
args:
args:
- --domain=__PILLAR__DNS__DOMAIN__.
- --domain=__PILLAR__DNS__DOMAIN__.
- --dns-port=10053
- --dns-port=10053
- --config-
map=kube-dns
- --config-
dir=/kube-dns-config
- --v=2
- --v=2
__PILLAR__FEDERATIONS__DOMAIN__MAP__
__PILLAR__FEDERATIONS__DOMAIN__MAP__
env:
env:
...
@@ -95,8 +100,11 @@ spec:
...
@@ -95,8 +100,11 @@ spec:
- containerPort: 10055
- containerPort: 10055
name: metrics
name: metrics
protocol: TCP
protocol: TCP
volumeMounts:
- name: kube-dns-config
mountPath: /kube-dns-config
- name: dnsmasq
- name: dnsmasq
image: gcr.io/google_containers/k8s-dns-dnsmasq-amd64:1.1
1.0
image: gcr.io/google_containers/k8s-dns-dnsmasq-amd64:1.1
2.1
livenessProbe:
livenessProbe:
httpGet:
httpGet:
path: /healthcheck/dnsmasq
path: /healthcheck/dnsmasq
...
@@ -124,7 +132,7 @@ spec:
...
@@ -124,7 +132,7 @@ spec:
cpu: 150m
cpu: 150m
memory: 10Mi
memory: 10Mi
- name: sidecar
- name: sidecar
image: gcr.io/google_containers/k8s-dns-sidecar-amd64:1.1
1.0
image: gcr.io/google_containers/k8s-dns-sidecar-amd64:1.1
2.1
livenessProbe:
livenessProbe:
httpGet:
httpGet:
path: /metrics
path: /metrics
...
...
cluster/addons/dns/kubedns-controller.yaml.in
View file @
f139645c
...
@@ -45,9 +45,14 @@ spec:
...
@@ -45,9 +45,14 @@ spec:
scheduler.alpha.kubernetes.io/critical-pod: ''
scheduler.alpha.kubernetes.io/critical-pod: ''
scheduler.alpha.kubernetes.io/tolerations: '[{"key":"CriticalAddonsOnly", "operator":"Exists"}]'
scheduler.alpha.kubernetes.io/tolerations: '[{"key":"CriticalAddonsOnly", "operator":"Exists"}]'
spec:
spec:
volumes:
- name: kube-dns-config
configMap:
name: kube-dns
optional: true
containers:
containers:
- name: kubedns
- name: kubedns
image: gcr.io/google_containers/k8s-dns-kube-dns-amd64:1.1
1.0
image: gcr.io/google_containers/k8s-dns-kube-dns-amd64:1.1
2.1
resources:
resources:
# TODO: Set memory limits when we've profiled the container for large
# TODO: Set memory limits when we've profiled the container for large
# clusters, then set request = limit to keep this container in
# clusters, then set request = limit to keep this container in
...
@@ -79,7 +84,7 @@ spec:
...
@@ -79,7 +84,7 @@ spec:
args:
args:
- --domain={{ pillar['dns_domain'] }}.
- --domain={{ pillar['dns_domain'] }}.
- --dns-port=10053
- --dns-port=10053
- --config-
map=kube-dns
- --config-
dir=/kube-dns-config
- --v=2
- --v=2
{{ pillar['federations_domain_map'] }}
{{ pillar['federations_domain_map'] }}
env:
env:
...
@@ -95,8 +100,11 @@ spec:
...
@@ -95,8 +100,11 @@ spec:
- containerPort: 10055
- containerPort: 10055
name: metrics
name: metrics
protocol: TCP
protocol: TCP
volumeMounts:
- name: kube-dns-config
mountPath: /kube-dns-config
- name: dnsmasq
- name: dnsmasq
image: gcr.io/google_containers/k8s-dns-dnsmasq-amd64:1.1
1.0
image: gcr.io/google_containers/k8s-dns-dnsmasq-amd64:1.1
2.1
livenessProbe:
livenessProbe:
httpGet:
httpGet:
path: /healthcheck/dnsmasq
path: /healthcheck/dnsmasq
...
@@ -124,7 +132,7 @@ spec:
...
@@ -124,7 +132,7 @@ spec:
cpu: 150m
cpu: 150m
memory: 10Mi
memory: 10Mi
- name: sidecar
- name: sidecar
image: gcr.io/google_containers/k8s-dns-sidecar-amd64:1.1
1.0
image: gcr.io/google_containers/k8s-dns-sidecar-amd64:1.1
2.1
livenessProbe:
livenessProbe:
httpGet:
httpGet:
path: /metrics
path: /metrics
...
...
cluster/addons/dns/kubedns-controller.yaml.sed
View file @
f139645c
...
@@ -45,9 +45,14 @@ spec:
...
@@ -45,9 +45,14 @@ spec:
scheduler.alpha.kubernetes.io/critical
-
p
o
d:
''
scheduler.alpha.kubernetes.io/critical
-
p
o
d:
''
s
c
heduler
.
alpha
.
kubernetes
.
io/tolerations: '
[
{"key":"Criti
c
alAddonsOnly", "operator":"Exists"}]'
s
c
heduler
.
alpha
.
kubernetes
.
io/tolerations: '
[
{"key":"Criti
c
alAddonsOnly", "operator":"Exists"}]'
spe
c
:
spe
c
:
volumes:
-
na
me: kube-dns-config
c
onfigMap:
na
me: kube-dns
o
p
t
i
onal: true
c
ontainers:
c
ontainers:
-
na
me: kubedns
-
na
me: kubedns
i
mage: gcr.io/google_containers/k8s-dns-kube-dns-amd64:1.1
1.0
i
mage: gcr.io/google_containers/k8s-dns-kube-dns-amd64:1.1
2.1
re
s
o
urces:
re
s
o
urces:
# TODO: Set mem
o
ry limits when we've pr
o
f
i
led the container for large
# TODO: Set mem
o
ry limits when we've pr
o
f
i
led the container for large
# clusters, then set request = limit to keep this container in
# clusters, then set request = limit to keep this container in
...
@@ -79,7 +84,7 @@ spec:
...
@@ -79,7 +84,7 @@ spec:
a
rgs:
a
rgs:
-
--
d
om
a
in=$DNS_DOMAIN.
-
--
d
om
a
in=$DNS_DOMAIN.
-
--
dns
-
port=10053
-
--
dns
-
port=10053
-
-
-
c
onfig-
map=kube-dns
-
-
-
c
onfig-
dir=/kube-dns-config
-
--v
=
2
-
--v
=
2
e
n
v
:
e
n
v
:
-
na
me: PROMETHEUS_PORT
-
na
me: PROMETHEUS_PORT
...
@@ -94,8 +99,11 @@ spec:
...
@@ -94,8 +99,11 @@ spec:
-
c
ontainerPort: 10055
-
c
ontainerPort: 10055
na
me: metrics
na
me: metrics
p
roto
c
ol: TCP
p
roto
c
ol: TCP
vo
l
umeMou
n
t
s
:
-
name
:
kube-dns-config
mountPath
:
/kube-
dns
-
config
-
name: dnsmasq
-
name: dnsmasq
i
mage: gcr.io/google_containers/k8s-dns-dnsmasq-amd64:1.1
1.0
image: gcr.io/google_containers/k8s
-
dns
-
dnsmasq
-
amd64:1.1
2.1
livenessProbe:
livenessProbe:
httpGet:
httpGet:
path: /healthcheck/dnsmasq
path: /healthcheck/dnsmasq
...
@@ -123,7 +131,7 @@ spec:
...
@@ -123,7 +131,7 @@ spec:
cpu: 150m
cpu: 150m
mem
o
ry: 10Mi
mem
o
ry: 10Mi
- name: sidecar
- name: sidecar
image: gcr.i
o
/
google_containers
/
k8
s
-
dns
-
sidecar
-
a
md64:1.1
1.0
image: gcr.i
o
/
google_containers
/
k8
s
-
dns
-
sidecar
-
a
md64:1.1
2.1
li
venessProbe:
li
venessProbe:
h
tt
pG
et
:
h
tt
pG
et
:
path:
/metr
i
cs
path:
/metr
i
cs
...
...
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