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
9e505d95
Commit
9e505d95
authored
Nov 30, 2016
by
Zihong Zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set strategy spec for kube-dns to support zero downtime during rolling update
parent
737edd02
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
1 deletion
+23
-1
skydns-rc.yaml.base
cluster/addons/dns/skydns-rc.yaml.base
+4
-0
skydns-rc.yaml.in
cluster/addons/dns/skydns-rc.yaml.in
+4
-0
skydns-rc.yaml.sed
cluster/addons/dns/skydns-rc.yaml.sed
+4
-0
skydns-rc.yaml
cluster/gce/coreos/kube-manifests/addons/dns/skydns-rc.yaml
+5
-0
kubedns-rc.yaml
cluster/juju/layers/kubernetes/templates/kubedns-rc.yaml
+6
-1
No files found.
cluster/addons/dns/skydns-rc.yaml.base
View file @
9e505d95
...
@@ -31,6 +31,10 @@ spec:
...
@@ -31,6 +31,10 @@ spec:
# 1. In order to make Addon Manager do not reconcile this replicas parameter.
# 1. In order to make Addon Manager do not reconcile this replicas parameter.
# 2. Default is 1.
# 2. Default is 1.
# 3. Will be tuned in real time if DNS horizontal auto-scaling is turned on.
# 3. Will be tuned in real time if DNS horizontal auto-scaling is turned on.
strategy:
rollingUpdate:
maxSurge: 10%
maxUnavailable: 0
selector:
selector:
matchLabels:
matchLabels:
k8s-app: kube-dns
k8s-app: kube-dns
...
...
cluster/addons/dns/skydns-rc.yaml.in
View file @
9e505d95
...
@@ -31,6 +31,10 @@ spec:
...
@@ -31,6 +31,10 @@ spec:
# 1. In order to make Addon Manager do not reconcile this replicas parameter.
# 1. In order to make Addon Manager do not reconcile this replicas parameter.
# 2. Default is 1.
# 2. Default is 1.
# 3. Will be tuned in real time if DNS horizontal auto-scaling is turned on.
# 3. Will be tuned in real time if DNS horizontal auto-scaling is turned on.
strategy:
rollingUpdate:
maxSurge: 10%
maxUnavailable: 0
selector:
selector:
matchLabels:
matchLabels:
k8s-app: kube-dns
k8s-app: kube-dns
...
...
cluster/addons/dns/skydns-rc.yaml.sed
View file @
9e505d95
...
@@ -31,6 +31,10 @@ spec:
...
@@ -31,6 +31,10 @@ spec:
# 1. In order to make Addon Manager do not reconcile this replicas parameter.
# 1. In order to make Addon Manager do not reconcile this replicas parameter.
# 2. Default is 1.
# 2. Default is 1.
# 3. Will be tuned in real time if DNS horizontal auto-scaling is turned on.
# 3. Will be tuned in real time if DNS horizontal auto-scaling is turned on.
s
t
ra
t
egy:
rollingUpda
t
e
:
maxSurge:
10
%
m
a
xUnavailable: 0
s
e
l
e
ctor:
s
e
l
e
ctor:
matchLab
e
ls
:
matchLab
e
ls
:
k8s-app
:
kube-dns
k8s-app
:
kube-dns
...
...
cluster/gce/coreos/kube-manifests/addons/dns/skydns-rc.yaml
View file @
9e505d95
...
@@ -11,6 +11,10 @@ spec:
...
@@ -11,6 +11,10 @@ spec:
# 1. In order to make Addon Manager do not reconcile this replicas parameter.
# 1. In order to make Addon Manager do not reconcile this replicas parameter.
# 2. Default is 1.
# 2. Default is 1.
# 3. Will be tuned in real time if DNS horizontal auto-scaling is turned on.
# 3. Will be tuned in real time if DNS horizontal auto-scaling is turned on.
strategy
:
rollingUpdate
:
maxSurge
:
10%
maxUnavailable
:
0
selector
:
selector
:
matchLabels
:
matchLabels
:
k8s-app
:
kube-dns
k8s-app
:
kube-dns
...
@@ -57,6 +61,7 @@ spec:
...
@@ -57,6 +61,7 @@ spec:
# command = "/kube-dns"
# command = "/kube-dns"
-
--domain=${DNS_DOMAIN}.
-
--domain=${DNS_DOMAIN}.
-
--dns-port=10053
-
--dns-port=10053
-
--config-map=kube-dns
-
--v=0
-
--v=0
env
:
env
:
-
name
:
PROMETHEUS_PORT
-
name
:
PROMETHEUS_PORT
...
...
cluster/juju/layers/kubernetes/templates/kubedns-rc.yaml
View file @
9e505d95
...
@@ -27,6 +27,10 @@ spec:
...
@@ -27,6 +27,10 @@ spec:
# 1. In order to make Addon Manager do not reconcile this replicas parameter.
# 1. In order to make Addon Manager do not reconcile this replicas parameter.
# 2. Default is 1.
# 2. Default is 1.
# 3. Will be tuned in real time if DNS horizontal auto-scaling is turned on.
# 3. Will be tuned in real time if DNS horizontal auto-scaling is turned on.
strategy
:
rollingUpdate
:
maxSurge
:
10%
maxUnavailable
:
0
selector
:
selector
:
matchLabels
:
matchLabels
:
k8s-app
:
kube-dns
k8s-app
:
kube-dns
...
@@ -40,7 +44,7 @@ spec:
...
@@ -40,7 +44,7 @@ spec:
spec
:
spec
:
containers
:
containers
:
-
name
:
kubedns
-
name
:
kubedns
image
:
gcr.io/google_containers/kubedns-{{ arch }}:1.
8
image
:
gcr.io/google_containers/kubedns-{{ arch }}:1.
9
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
...
@@ -73,6 +77,7 @@ spec:
...
@@ -73,6 +77,7 @@ spec:
# command = "/kube-dns"
# command = "/kube-dns"
-
--domain={{ pillar['dns_domain'] }}.
-
--domain={{ pillar['dns_domain'] }}.
-
--dns-port=10053
-
--dns-port=10053
-
--config-map=kube-dns
-
--v=0
-
--v=0
-
--kube_master_url=http://{{ private_address }}:8080
-
--kube_master_url=http://{{ private_address }}:8080
{{
pillar
[
'
federations_domain_map'
]
}}
{{
pillar
[
'
federations_domain_map'
]
}}
...
...
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