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
3e55d4d6
Commit
3e55d4d6
authored
Sep 29, 2016
by
MrHohn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bump up addon kube-dns to v20 for graceful termination
parent
39e6ed81
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
52 additions
and
51 deletions
+52
-51
Changelog
build/kube-dns/Changelog
+3
-0
Makefile
build/kube-dns/Makefile
+1
-1
skydns-rc.yaml.base
cluster/addons/dns/skydns-rc.yaml.base
+6
-6
skydns-rc.yaml.in
cluster/addons/dns/skydns-rc.yaml.in
+15
-16
skydns-rc.yaml.sed
cluster/addons/dns/skydns-rc.yaml.sed
+15
-16
skydns-rc.yaml
cluster/gce/coreos/kube-manifests/addons/dns/skydns-rc.yaml
+6
-6
kubedns-rc.yaml
cluster/juju/layers/kubernetes/templates/kubedns-rc.yaml
+6
-6
No files found.
build/kube-dns/Changelog
View file @
3e55d4d6
...
@@ -15,3 +15,6 @@
...
@@ -15,3 +15,6 @@
## Version 1.7 (Wed August 24 2016 Zihong Zheng <zihongz@google.com>)
## Version 1.7 (Wed August 24 2016 Zihong Zheng <zihongz@google.com>)
- Add support for ExternalName services (pr #31159)
- Add support for ExternalName services (pr #31159)
## Version 1.8 (Thu September 29 2016 Zihong Zheng <zihongz@google.com>)
- Add support for graceful termination (issue #31807)
build/kube-dns/Makefile
View file @
3e55d4d6
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
# Default registry, arch and tag. This can be overwritten by arguments to make
# Default registry, arch and tag. This can be overwritten by arguments to make
PLATFORM
?=
linux
PLATFORM
?=
linux
ARCH
?=
amd64
ARCH
?=
amd64
TAG
?=
1.
7
TAG
?=
1.
8
REGISTRY
?=
gcr.io/google_containers
REGISTRY
?=
gcr.io/google_containers
GOLANG_VERSION
=
1.6
GOLANG_VERSION
=
1.6
...
...
cluster/addons/dns/skydns-rc.yaml.base
View file @
3e55d4d6
...
@@ -19,29 +19,29 @@
...
@@ -19,29 +19,29 @@
apiVersion: v1
apiVersion: v1
kind: ReplicationController
kind: ReplicationController
metadata:
metadata:
name: kube-dns-v
19
name: kube-dns-v
20
namespace: kube-system
namespace: kube-system
labels:
labels:
k8s-app: kube-dns
k8s-app: kube-dns
version: v
19
version: v
20
kubernetes.io/cluster-service: "true"
kubernetes.io/cluster-service: "true"
spec:
spec:
replicas: __PILLAR__DNS__REPLICAS__
replicas: __PILLAR__DNS__REPLICAS__
selector:
selector:
k8s-app: kube-dns
k8s-app: kube-dns
version: v
19
version: v
20
template:
template:
metadata:
metadata:
labels:
labels:
k8s-app: kube-dns
k8s-app: kube-dns
version: v
19
version: v
20
annotations:
annotations:
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:
containers:
containers:
- name: kubedns
- name: kubedns
image: gcr.io/google_containers/kubedns-amd64:1.
7
image: gcr.io/google_containers/kubedns-amd64:1.
8
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
...
@@ -83,7 +83,7 @@ spec:
...
@@ -83,7 +83,7 @@ spec:
name: dns-tcp-local
name: dns-tcp-local
protocol: TCP
protocol: TCP
- name: dnsmasq
- name: dnsmasq
image: gcr.io/google_containers/kube-dnsmasq-amd64:1.
3
image: gcr.io/google_containers/kube-dnsmasq-amd64:1.
4
livenessProbe:
livenessProbe:
httpGet:
httpGet:
path: /healthz-dnsmasq
path: /healthz-dnsmasq
...
...
cluster/addons/dns/skydns-rc.yaml.in
View file @
3e55d4d6
...
@@ -19,30 +19,29 @@
...
@@ -19,30 +19,29 @@
apiVersion: v1
apiVersion: v1
kind: ReplicationController
kind: ReplicationController
metadata:
metadata:
name: kube-dns-v
19
name: kube-dns-v
20
namespace: kube-system
namespace: kube-system
labels:
labels:
k8s-app: kube-dns
k8s-app: kube-dns
version: v
19
version: v
20
kubernetes.io/cluster-service: "true"
kubernetes.io/cluster-service: "true"
spec:
spec:
replicas: {{ pillar['dns_replicas'] }}
replicas: {{ pillar['dns_replicas'] }}
selector:
selector:
k8s-app: kube-dns
k8s-app: kube-dns
version: v
19
version: v
20
template:
template:
metadata:
metadata:
labels:
labels:
k8s-app: kube-dns
k8s-app: kube-dns
version: v19
version: v20
kubernetes.io/cluster-service: "true"
annotations:
annotations:
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:
containers:
containers:
- name: kubedns
- name: kubedns
image: gcr.io/google_containers/kubedns-amd64:1.
7
image: gcr.io/google_containers/kubedns-amd64:1.
8
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
...
@@ -84,7 +83,16 @@ spec:
...
@@ -84,7 +83,16 @@ spec:
name: dns-tcp-local
name: dns-tcp-local
protocol: TCP
protocol: TCP
- name: dnsmasq
- name: dnsmasq
image: gcr.io/google_containers/kube-dnsmasq-amd64:1.3
image: gcr.io/google_containers/kube-dnsmasq-amd64:1.4
livenessProbe:
httpGet:
path: /healthz-dnsmasq
port: 8080
scheme: HTTP
initialDelaySeconds: 60
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 5
args:
args:
- --cache-size=1000
- --cache-size=1000
- --no-resolv
- --no-resolv
...
@@ -97,15 +105,6 @@ spec:
...
@@ -97,15 +105,6 @@ spec:
- containerPort: 53
- containerPort: 53
name: dns-tcp
name: dns-tcp
protocol: TCP
protocol: TCP
livenessProbe:
httpGet:
path: /healthz-dnsmasq
port: 8080
scheme: HTTP
initialDelaySeconds: 60
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 5
- name: healthz
- name: healthz
image: gcr.io/google_containers/exechealthz-amd64:1.2
image: gcr.io/google_containers/exechealthz-amd64:1.2
resources:
resources:
...
...
cluster/addons/dns/skydns-rc.yaml.sed
View file @
3e55d4d6
...
@@ -19,30 +19,29 @@
...
@@ -19,30 +19,29 @@
a
piVersion: v1
a
piVersion: v1
k
i
nd: ReplicationController
k
i
nd: ReplicationController
met
a
data:
met
a
data:
na
me: kube-dns-v
19
na
me: kube-dns-v
20
na
mespace: kube-system
na
mespace: kube-system
la
bels:
la
bels:
k8
s
-
app: kube
-
dns
k8
s
-
app: kube
-
dns
version: v
19
version: v
20
kubernetes.io/cluster
-
s
e
rvic
e
: "tru
e
"
kubernetes.io/cluster
-
s
e
rvic
e
: "tru
e
"
s
p
ec:
s
p
ec:
re
p
licas: $DNS_REPLICAS
re
p
licas: $DNS_REPLICAS
selector:
selector:
k8s-a
p
p:
kube-dns
k8s-a
p
p:
kube-dns
ver
s
i
on: v
19
ver
s
i
on: v
20
template:
template:
metadata:
metadata:
labels:
labels:
k8s-app: kube-dns
k8s-app: kube-dns
vers
i
on: v19
vers
i
on: v20
kubernetes.
i
o/
c
luster-service: "true"
annotat
i
o
ns
:
annotat
i
o
ns
:
scheduler
.
alpha
.
kubernetes
.
io/critical-pod
:
''
scheduler
.
alpha
.
kubernetes
.
io/critical-pod
:
''
scheduler.alpha.kubernetes.io/tolerations
:
'[
{
"ke
y
"
:
"
CriticalAddonsOnly
"
,
"o
p
er
a
tor":"Exists"}]'
scheduler.alpha.kubernetes.io/tolerations
:
'[
{
"ke
y
"
:
"
CriticalAddonsOnly
"
,
"o
p
er
a
tor":"Exists"}]'
s
p
ec:
s
p
ec:
containers:
containers:
- name: kubedns
- name: kubedns
i
mage: gcr.io/google_containers/kubedns-amd64:1.
7
image: gcr
.
io/google_containers/kubedns-amd64:1
.
8
resources:
resources:
# TODO: Set memory limits when we've
p
rofiled the container for large
# TODO: Set memory limits when we've
p
rofiled the container for large
# clusters, then set request = limit to kee
p
t
hi
s container in
# clusters, then set request = limit to kee
p
t
hi
s container in
...
@@ -83,7 +82,16 @@ spec:
...
@@ -83,7 +82,16 @@ spec:
na
me: dns-tcp-local
na
me: dns-tcp-local
p
roto
c
ol: TCP
p
roto
c
ol: TCP
-
na
me: dnsmasq
-
na
me: dnsmasq
i
mage: gcr.io/google_containers/kube-dnsmasq-amd64:1.3
i
mage: gcr.io/google_containers/kube-dnsmasq-amd64:1.4
li
venessProbe:
h
tt
pG
et
:
path:
/
h
e
a
lthz-dnsmasq
p
ort
:
8080
s
c
heme: HTTP
initialDelaySe
c
onds: 60
timeoutSe
c
o
nds
:
5
successThreshold
:
1
failureThreshold
:
5
a
rgs:
a
rgs:
-
--
c
ache-size=1000
-
--
c
ache-size=1000
-
--
n
o-re
s
o
lv
-
--
n
o-re
s
o
lv
...
@@ -96,15 +104,6 @@ spec:
...
@@ -96,15 +104,6 @@ spec:
- containerPort: 53
- containerPort: 53
na
me: dns-tcp
na
me: dns-tcp
p
roto
c
ol: TCP
p
roto
c
ol: TCP
li
venessProbe:
h
tt
pG
et
:
path:
/
h
e
a
lthz-dnsmasq
p
ort
:
8080
s
c
heme: HTTP
initialDelaySe
c
onds: 60
timeoutSe
c
o
nds
:
5
successThreshold
:
1
failureThreshold
:
5
-
na
me: healthz
-
na
me: healthz
i
mage: gcr.io/google_containers/exechealthz-amd64:1.2
i
mage: gcr.io/google_containers/exechealthz-amd64:1.2
re
s
o
urces:
re
s
o
urces:
...
...
cluster/gce/coreos/kube-manifests/addons/dns/skydns-rc.yaml
View file @
3e55d4d6
apiVersion
:
v1
apiVersion
:
v1
kind
:
ReplicationController
kind
:
ReplicationController
metadata
:
metadata
:
name
:
kube-dns-v
19
name
:
kube-dns-v
20
namespace
:
kube-system
namespace
:
kube-system
labels
:
labels
:
k8s-app
:
kube-dns
k8s-app
:
kube-dns
version
:
v
19
version
:
v
20
kubernetes.io/cluster-service
:
"
true"
kubernetes.io/cluster-service
:
"
true"
spec
:
spec
:
replicas
:
${DNS_REPLICAS}
replicas
:
${DNS_REPLICAS}
selector
:
selector
:
k8s-app
:
kube-dns
k8s-app
:
kube-dns
version
:
v
19
version
:
v
20
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
k8s-app
:
kube-dns
k8s-app
:
kube-dns
version
:
v
19
version
:
v
20
annotations
:
annotations
:
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
:
containers
:
containers
:
-
name
:
kubedns
-
name
:
kubedns
image
:
gcr.io/google_containers/kubedns-amd64:1.
7
image
:
gcr.io/google_containers/kubedns-amd64:1.
8
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
...
@@ -64,7 +64,7 @@ spec:
...
@@ -64,7 +64,7 @@ spec:
name
:
dns-tcp-local
name
:
dns-tcp-local
protocol
:
TCP
protocol
:
TCP
-
name
:
dnsmasq
-
name
:
dnsmasq
image
:
gcr.io/google_containers/kube-dnsmasq-amd64:1.
3
image
:
gcr.io/google_containers/kube-dnsmasq-amd64:1.
4
livenessProbe
:
livenessProbe
:
httpGet
:
httpGet
:
path
:
/healthz-dnsmasq
path
:
/healthz-dnsmasq
...
...
cluster/juju/layers/kubernetes/templates/kubedns-rc.yaml
View file @
3e55d4d6
...
@@ -17,29 +17,29 @@
...
@@ -17,29 +17,29 @@
apiVersion
:
v1
apiVersion
:
v1
kind
:
ReplicationController
kind
:
ReplicationController
metadata
:
metadata
:
name
:
kube-dns-v
19
name
:
kube-dns-v
20
namespace
:
kube-system
namespace
:
kube-system
labels
:
labels
:
k8s-app
:
kube-dns
k8s-app
:
kube-dns
version
:
v
19
version
:
v
20
kubernetes.io/cluster-service
:
"
true"
kubernetes.io/cluster-service
:
"
true"
spec
:
spec
:
replicas
:
{{
pillar
[
'
dns_replicas'
]
}}
replicas
:
{{
pillar
[
'
dns_replicas'
]
}}
selector
:
selector
:
k8s-app
:
kube-dns
k8s-app
:
kube-dns
version
:
v
19
version
:
v
20
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
k8s-app
:
kube-dns
k8s-app
:
kube-dns
version
:
v
19
version
:
v
20
annotations
:
annotations
:
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
:
containers
:
containers
:
-
name
:
kubedns
-
name
:
kubedns
image
:
gcr.io/google_containers/kubedns-{{ arch }}:1.
7
image
:
gcr.io/google_containers/kubedns-{{ arch }}:1.
8
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
...
@@ -82,7 +82,7 @@ spec:
...
@@ -82,7 +82,7 @@ spec:
name
:
dns-tcp-local
name
:
dns-tcp-local
protocol
:
TCP
protocol
:
TCP
-
name
:
dnsmasq
-
name
:
dnsmasq
image
:
gcr.io/google_containers/kube-dnsmasq-{{ arch }}:1.
3
image
:
gcr.io/google_containers/kube-dnsmasq-{{ arch }}:1.
4
livenessProbe
:
livenessProbe
:
httpGet
:
httpGet
:
path
:
/healthz-dnsmasq
path
:
/healthz-dnsmasq
...
...
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