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
dce1c06a
Commit
dce1c06a
authored
Sep 10, 2016
by
Zihong Zheng
Committed by
GitHub
Sep 10, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Use a Deployment for kube-dns"
parent
b73aa599
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
54 deletions
+42
-54
skydns-rc.yaml.base
cluster/addons/dns/skydns-rc.yaml.base
+6
-5
skydns-rc.yaml.in
cluster/addons/dns/skydns-rc.yaml.in
+6
-5
skydns-rc.yaml.sed
cluster/addons/dns/skydns-rc.yaml.sed
+6
-5
skydns-rc.yaml
cluster/gce/coreos/kube-manifests/addons/dns/skydns-rc.yaml
+12
-21
kubedns-rc.yaml
cluster/juju/layers/kubernetes/templates/kubedns-rc.yaml
+12
-18
No files found.
cluster/addons/dns/skydns-rc.yaml.base
View file @
dce1c06a
...
@@ -12,12 +12,14 @@
...
@@ -12,12 +12,14 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# This file should be kept in sync with cluster/images/hyperkube/dns-rc.yaml
# TODO - At some point, we need to rename all skydns-*.yaml.* files to kubedns-*.yaml.*
# TODO - At some point, we need to rename all skydns-*.yaml.* files to kubedns-*.yaml.*
# __MACHINE_GENERATED_WARNING__
# __MACHINE_GENERATED_WARNING__
apiVersion:
extensions/v1beta
1
apiVersion:
v
1
kind:
Deployment
kind:
ReplicationController
metadata:
metadata:
name: kube-dns-v19
name: kube-dns-v19
namespace: kube-system
namespace: kube-system
...
@@ -28,9 +30,8 @@ metadata:
...
@@ -28,9 +30,8 @@ metadata:
spec:
spec:
replicas: __PILLAR__DNS__REPLICAS__
replicas: __PILLAR__DNS__REPLICAS__
selector:
selector:
matchLabels:
k8s-app: kube-dns
k8s-app: kube-dns
version: v19
version: v19
template:
template:
metadata:
metadata:
labels:
labels:
...
...
cluster/addons/dns/skydns-rc.yaml.in
View file @
dce1c06a
...
@@ -12,12 +12,14 @@
...
@@ -12,12 +12,14 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# This file should be kept in sync with cluster/images/hyperkube/dns-rc.yaml
# TODO - At some point, we need to rename all skydns-*.yaml.* files to kubedns-*.yaml.*
# TODO - At some point, we need to rename all skydns-*.yaml.* files to kubedns-*.yaml.*
# Warning: This is a file generated from the base underscore template file: skydns-rc.yaml.base
# Warning: This is a file generated from the base underscore template file: skydns-rc.yaml.base
apiVersion:
extensions/v1beta
1
apiVersion:
v
1
kind:
Deployment
kind:
ReplicationController
metadata:
metadata:
name: kube-dns-v19
name: kube-dns-v19
namespace: kube-system
namespace: kube-system
...
@@ -28,9 +30,8 @@ metadata:
...
@@ -28,9 +30,8 @@ metadata:
spec:
spec:
replicas: {{ pillar['dns_replicas'] }}
replicas: {{ pillar['dns_replicas'] }}
selector:
selector:
matchLabels:
k8s-app: kube-dns
k8s-app: kube-dns
version: v19
version: v19
template:
template:
metadata:
metadata:
labels:
labels:
...
...
cluster/addons/dns/skydns-rc.yaml.sed
View file @
dce1c06a
...
@@ -12,12 +12,14 @@
...
@@ -12,12 +12,14 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# This file should be kept in sync with cluster/images/hyperkube/dns-rc.yaml
# TODO - At some point, we need to rename all skydns-*.yaml.* files to kubedns-*.yaml.*
# TODO - At some point, we need to rename all skydns-*.yaml.* files to kubedns-*.yaml.*
# Warning: This is a file generated from the base underscore template file: skydns-rc.yaml.base
# Warning: This is a file generated from the base underscore template file: skydns-rc.yaml.base
a
piVersion:
extensions/v1beta
1
a
piVersion:
v
1
k
i
nd:
Deployment
k
i
nd:
ReplicationController
met
a
data:
met
a
data:
na
me: kube-dns-v19
na
me: kube-dns-v19
na
mespace: kube-system
na
mespace: kube-system
...
@@ -28,9 +30,8 @@ metadata:
...
@@ -28,9 +30,8 @@ metadata:
s
p
ec:
s
p
ec:
re
p
licas: $DNS_REPLICAS
re
p
licas: $DNS_REPLICAS
selector:
selector:
matchLabels:
k8s-a
p
p:
kube-dns
k8s-a
p
p:
kube-dns
ver
s
i
on: v19
ver
s
i
on: v19
template:
template:
metadata:
metadata:
labels:
labels:
...
...
cluster/gce/coreos/kube-manifests/addons/dns/skydns-rc.yaml
View file @
dce1c06a
apiVersion
:
extensions/v1beta
1
apiVersion
:
v
1
kind
:
Deployment
kind
:
ReplicationController
metadata
:
metadata
:
name
:
kube-dns-v1
9
name
:
kube-dns-v1
5
namespace
:
kube-system
namespace
:
kube-system
labels
:
labels
:
k8s-app
:
kube-dns
k8s-app
:
kube-dns
version
:
v1
9
version
:
v1
5
kubernetes.io/cluster-service
:
"
true"
kubernetes.io/cluster-service
:
"
true"
spec
:
spec
:
replicas
:
${DNS_REPLICAS}
replicas
:
${DNS_REPLICAS}
selector
:
selector
:
matchLabels
:
k8s-app
:
kube-dns
k8s-app
:
kube-dns
version
:
v15
version
:
v19
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
k8s-app
:
kube-dns
k8s-app
:
kube-dns
version
:
v1
9
version
:
v1
5
kubernetes.io/cluster-service
:
"
true"
kubernetes.io/cluster-service
:
"
true"
annotations
:
scheduler.alpha.kubernetes.io/critical-pod
:
'
'
scheduler.alpha.kubernetes.io/tolerations
:
'
[{"key":"CriticalAddonsOnly",
"operator":"Exists"}]'
spec
:
spec
:
containers
:
containers
:
-
name
:
kubedns
-
name
:
kubedns
...
@@ -67,7 +63,7 @@ spec:
...
@@ -67,7 +63,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/
dnsmasq:1.1
args
:
args
:
-
--cache-size=1000
-
--cache-size=1000
-
--no-resolv
-
--no-resolv
...
@@ -80,23 +76,18 @@ spec:
...
@@ -80,23 +76,18 @@ spec:
name
:
dns-tcp
name
:
dns-tcp
protocol
:
TCP
protocol
:
TCP
-
name
:
healthz
-
name
:
healthz
image
:
gcr.io/google_containers/exechealthz-amd64:1.
1
image
:
gcr.io/google_containers/exechealthz-amd64:1.
0
resources
:
resources
:
# keep request = limit to keep this container in guaranteed class
# keep request = limit to keep this container in guaranteed class
limits
:
limits
:
cpu
:
10m
cpu
:
10m
memory
:
5
0Mi
memory
:
2
0Mi
requests
:
requests
:
cpu
:
10m
cpu
:
10m
# Note that this container shouldn't really need 50Mi of memory. The
memory
:
20Mi
# limits are set higher than expected pending investigation on #29688.
# The extra memory was stolen from the kubedns container to keep the
# net memory requested by the pod constant.
memory
:
50Mi
args
:
args
:
-
-cmd=nslookup kubernetes.default.svc.${DNS_DOMAIN} 127.0.0.1 >/dev/null
&& nslookup kubernetes.default.svc.${DNS_DOMAIN} 127.0.0.1:10053 >/dev/null
-
-cmd=nslookup kubernetes.default.svc.${DNS_DOMAIN} 127.0.0.1 >/dev/null
-
-port=8080
-
-port=8080
-
-quiet
ports
:
ports
:
-
containerPort
:
8080
-
containerPort
:
8080
protocol
:
TCP
protocol
:
TCP
...
...
cluster/juju/layers/kubernetes/templates/kubedns-rc.yaml
View file @
dce1c06a
...
@@ -12,32 +12,30 @@
...
@@ -12,32 +12,30 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# This file should be kept in sync with cluster/images/hyperkube/dns-rc.yaml
# Warning: This is a file generated from the base underscore template file: skydns-rc.yaml.base
# Warning: This is a file generated from the base underscore template file: skydns-rc.yaml.base
apiVersion
:
extensions/v1beta
1
apiVersion
:
v
1
kind
:
Deployment
kind
:
ReplicationController
metadata
:
metadata
:
name
:
kube-dns-v1
9
name
:
kube-dns-v1
8
namespace
:
kube-system
namespace
:
kube-system
labels
:
labels
:
k8s-app
:
kube-dns
k8s-app
:
kube-dns
version
:
v1
9
version
:
v1
8
kubernetes.io/cluster-service
:
"
true"
kubernetes.io/cluster-service
:
"
true"
spec
:
spec
:
replicas
:
{{
pillar
[
'
dns_replicas'
]
}}
replicas
:
{{
pillar
[
'
dns_replicas'
]
}}
selector
:
selector
:
matchLabels
:
k8s-app
:
kube-dns
k8s-app
:
kube-dns
version
:
v18
version
:
v19
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
k8s-app
:
kube-dns
k8s-app
:
kube-dns
version
:
v1
9
version
:
v1
8
kubernetes.io/cluster-service
:
"
true"
kubernetes.io/cluster-service
:
"
true"
annotations
:
scheduler.alpha.kubernetes.io/critical-pod
:
'
'
scheduler.alpha.kubernetes.io/tolerations
:
'
[{"key":"CriticalAddonsOnly",
"operator":"Exists"}]'
spec
:
spec
:
containers
:
containers
:
-
name
:
kubedns
-
name
:
kubedns
...
@@ -98,19 +96,15 @@ spec:
...
@@ -98,19 +96,15 @@ spec:
name
:
dns-tcp
name
:
dns-tcp
protocol
:
TCP
protocol
:
TCP
-
name
:
healthz
-
name
:
healthz
image
:
gcr.io/google_containers/exechealthz-{{ arch }}:1.
1
image
:
gcr.io/google_containers/exechealthz-{{ arch }}:1.
0
resources
:
resources
:
# keep request = limit to keep this container in guaranteed class
# keep request = limit to keep this container in guaranteed class
limits
:
limits
:
cpu
:
10m
cpu
:
10m
memory
:
5
0Mi
memory
:
2
0Mi
requests
:
requests
:
cpu
:
10m
cpu
:
10m
# Note that this container shouldn't really need 50Mi of memory. The
memory
:
20Mi
# limits are set higher than expected pending investigation on #29688.
# The extra memory was stolen from the kubedns container to keep the
# net memory requested by the pod constant.
memory
:
50Mi
args
:
args
:
-
-cmd=nslookup kubernetes.default.svc.{{ pillar['dns_domain'] }} 127.0.0.1 >/dev/null && nslookup kubernetes.default.svc.{{ pillar['dns_domain'] }} 127.0.0.1:10053 >/dev/null
-
-cmd=nslookup kubernetes.default.svc.{{ pillar['dns_domain'] }} 127.0.0.1 >/dev/null && nslookup kubernetes.default.svc.{{ pillar['dns_domain'] }} 127.0.0.1:10053 >/dev/null
-
-port=8080
-
-port=8080
...
...
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