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
52ca344c
Commit
52ca344c
authored
Nov 10, 2016
by
Kubernetes Submit Queue
Committed by
GitHub
Nov 10, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #36261 from bowei/dnsmasq-metrics-in-dns-pod
Automatic merge from submit-queue Add dnsmasq-metrics to the standard DNS pod
parents
f70c2ef2
9478c4b0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
161 additions
and
3 deletions
+161
-3
skydns-rc.yaml.base
cluster/addons/dns/skydns-rc.yaml.base
+35
-1
skydns-rc.yaml.in
cluster/addons/dns/skydns-rc.yaml.in
+35
-1
skydns-rc.yaml.sed
cluster/addons/dns/skydns-rc.yaml.sed
+35
-1
skydns-rc.yaml
cluster/gce/coreos/kube-manifests/addons/dns/skydns-rc.yaml
+28
-0
kubedns-rc.yaml
cluster/juju/layers/kubernetes/templates/kubedns-rc.yaml
+28
-0
No files found.
cluster/addons/dns/skydns-rc.yaml.base
View file @
52ca344c
...
...
@@ -74,10 +74,15 @@ spec:
initialDelaySeconds: 3
timeoutSeconds: 5
args:
# command = "/kube-dns"
- --domain=__PILLAR__DNS__DOMAIN__.
- --dns-port=10053
# This should be set to v=2 only after the new image (cut from 1.5) has
# been released, otherwise we will flood the logs.
- --v=0
__PILLAR__FEDERATIONS__DOMAIN__MAP__
env:
- name: PROMETHEUS_PORT
value: "10055"
ports:
- containerPort: 10053
name: dns-local
...
...
@@ -85,6 +90,9 @@ spec:
- containerPort: 10053
name: dns-tcp-local
protocol: TCP
- containerPort: 10055
name: metrics
protocol: TCP
- name: dnsmasq
image: gcr.io/google_containers/kube-dnsmasq-amd64:1.4
livenessProbe:
...
...
@@ -108,6 +116,32 @@ spec:
- containerPort: 53
name: dns-tcp
protocol: TCP
# see: https://github.com/kubernetes/kubernetes/issues/29055 for details
resources:
requests:
cpu: 150m
memory: 10Mi
- name: dnsmasq-metrics
image: gcr.io/google_containers/dnsmasq-metrics-amd64:1.0
livenessProbe:
httpGet:
path: /metrics
port: 10054
scheme: HTTP
initialDelaySeconds: 60
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 5
args:
- --v=2
- --logtostderr
ports:
- containerPort: 10054
name: metrics
protocol: TCP
resources:
requests:
memory: 10Mi
- name: healthz
image: gcr.io/google_containers/exechealthz-amd64:1.2
resources:
...
...
cluster/addons/dns/skydns-rc.yaml.in
View file @
52ca344c
...
...
@@ -74,10 +74,15 @@ spec:
initialDelaySeconds: 3
timeoutSeconds: 5
args:
# command = "/kube-dns"
- --domain={{ pillar['dns_domain'] }}.
- --dns-port=10053
# This should be set to v=2 only after the new image (cut from 1.5) has
# been released, otherwise we will flood the logs.
- --v=0
{{ pillar['federations_domain_map'] }}
env:
- name: PROMETHEUS_PORT
value: "10055"
ports:
- containerPort: 10053
name: dns-local
...
...
@@ -85,6 +90,9 @@ spec:
- containerPort: 10053
name: dns-tcp-local
protocol: TCP
- containerPort: 10055
name: metrics
protocol: TCP
- name: dnsmasq
image: gcr.io/google_containers/kube-dnsmasq-amd64:1.4
livenessProbe:
...
...
@@ -108,6 +116,32 @@ spec:
- containerPort: 53
name: dns-tcp
protocol: TCP
# see: https://github.com/kubernetes/kubernetes/issues/29055 for details
resources:
requests:
cpu: 150m
memory: 10Mi
- name: dnsmasq-metrics
image: gcr.io/google_containers/dnsmasq-metrics-amd64:1.0
livenessProbe:
httpGet:
path: /metrics
port: 10054
scheme: HTTP
initialDelaySeconds: 60
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 5
args:
- --v=2
- --logtostderr
ports:
- containerPort: 10054
name: metrics
protocol: TCP
resources:
requests:
memory: 10Mi
- name: healthz
image: gcr.io/google_containers/exechealthz-amd64:1.2
resources:
...
...
cluster/addons/dns/skydns-rc.yaml.sed
View file @
52ca344c
...
...
@@ -74,9 +74,14 @@ spec:
i
nitialDelaySeconds: 3
t
i
meoutSeconds: 5
a
rgs:
# command = "/kube-dns"
-
--
d
om
a
in=$DNS_DOMAIN.
-
--
dns
-
port=10053
# This should be set to v=2 only after the new image (cut from 1.5) has
# been released, otherwise we will flood the logs.
-
-
-v
=
0
e
n
v
:
-
na
me: PROMETHEUS_PORT
v
a
lue: "10055"
p
ort
s
:
-
containerPort
:
10053
name
:
dns
-
local
...
...
@@ -84,6 +89,9 @@ spec:
-
containerPort: 10053
name: dns
-
t
c
p-local
p
roto
c
ol: TCP
-
c
ontainerPort: 10055
na
me: metrics
p
roto
c
ol: TCP
-
na
me: dnsmasq
i
mage: gcr.io/google_containers/kube-dnsmasq-amd64:1.4
li
venessProbe:
...
...
@@ -107,6 +115,32 @@ spec:
- containerPort: 53
na
me: dns-tcp
p
roto
c
ol: TCP
# see: https://github.com/kubernetes/kubernetes/issues/29055 for details
re
s
o
urces:
requests:
cpu: 150m
mem
o
ry: 10Mi
- name: dnsmasq-metrics
image: gcr.i
o
/
google_containers
/
dns
m
asq-
m
etrics-a
m
d
64:1.0
li
venessProbe:
h
tt
pG
et
:
path:
/metr
i
cs
p
ort
:
10054
s
c
heme: HTTP
initialDelaySe
c
onds: 60
timeoutSe
c
o
nds
:
5
successThreshold
:
1
failureThreshold
:
5
a
rgs:
-
--v
=
2
-
--
l
o
g
to
s
t
derr
por
t
s:
- con
t
a
inerPort: 10054
na
me: metrics
p
roto
c
ol: TCP
re
s
o
urces:
requests:
mem
o
ry: 10Mi
- name: healthz
image: gcr.i
o
/
google_containers
/
e
x
e
c
healthz-amd64:1.2
re
s
o
urces:
...
...
cluster/gce/coreos/kube-manifests/addons/dns/skydns-rc.yaml
View file @
52ca344c
...
...
@@ -57,6 +57,10 @@ spec:
# command = "/kube-dns"
-
--domain=${DNS_DOMAIN}.
-
--dns-port=10053
-
--v=0
env
:
-
name
:
PROMETHEUS_PORT
value
:
"
10055"
ports
:
-
containerPort
:
10053
name
:
dns-local
...
...
@@ -64,6 +68,9 @@ spec:
-
containerPort
:
10053
name
:
dns-tcp-local
protocol
:
TCP
-
containerPort
:
10055
name
:
metrics
protocol
:
TCP
-
name
:
dnsmasq
image
:
gcr.io/google_containers/kube-dnsmasq-amd64:1.4
livenessProbe
:
...
...
@@ -87,6 +94,27 @@ spec:
-
containerPort
:
53
name
:
dns-tcp
protocol
:
TCP
-
name
:
dnsmasq-metrics
image
:
gcr.io/google_containers/dnsmasq-metrics-amd64:1.0
livenessProbe
:
httpGet
:
path
:
/metrics
port
:
10054
scheme
:
HTTP
initialDelaySeconds
:
60
timeoutSeconds
:
5
successThreshold
:
1
failureThreshold
:
5
args
:
-
--v=2
-
--logtostderr
ports
:
-
containerPort
:
10054
name
:
metrics
protocol
:
TCP
resources
:
requests
:
memory
:
10Mi
-
name
:
healthz
image
:
gcr.io/google_containers/exechealthz-amd64:1.2
resources
:
...
...
cluster/juju/layers/kubernetes/templates/kubedns-rc.yaml
View file @
52ca344c
...
...
@@ -73,8 +73,12 @@ spec:
# command = "/kube-dns"
-
--domain={{ pillar['dns_domain'] }}.
-
--dns-port=10053
-
--v=0
-
--kube_master_url=http://{{ private_address }}:8080
{{
pillar
[
'
federations_domain_map'
]
}}
env
:
-
name
:
PROMETHEUS_PORT
value
:
"
10055"
ports
:
-
containerPort
:
10053
name
:
dns-local
...
...
@@ -82,6 +86,9 @@ spec:
-
containerPort
:
10053
name
:
dns-tcp-local
protocol
:
TCP
-
containerPort
:
10055
name
:
metrics
protocol
:
TCP
-
name
:
dnsmasq
image
:
gcr.io/google_containers/kube-dnsmasq-{{ arch }}:1.4
livenessProbe
:
...
...
@@ -105,6 +112,27 @@ spec:
-
containerPort
:
53
name
:
dns-tcp
protocol
:
TCP
-
name
:
dnsmasq-metrics
image
:
gcr.io/google_containers/dnsmasq-metrics-amd64:1.0
livenessProbe
:
httpGet
:
path
:
/metrics
port
:
10054
scheme
:
HTTP
initialDelaySeconds
:
60
timeoutSeconds
:
5
successThreshold
:
1
failureThreshold
:
5
args
:
-
--v=2
-
--logtostderr
ports
:
-
containerPort
:
10054
name
:
metrics
protocol
:
TCP
resources
:
requests
:
memory
:
10Mi
-
name
:
healthz
image
:
gcr.io/google_containers/exechealthz-{{ arch }}:1.2
resources
:
...
...
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