Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Configure kube-dns to expose metrics (#2566)
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvain Rabot <[email protected]>
  • Loading branch information
sylr authored and jackfrancis committed Jun 14, 2018
1 parent e8c121d commit 5e62bbf
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ spec:
metadata:
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ""
prometheus.io/scrape: "true"
prometheus.io/port: "10055"
labels:
k8s-app: kube-dns
kubernetes.io/cluster-service: "true"
Expand Down Expand Up @@ -78,6 +80,9 @@ spec:
- "--dns-port=10053"
- "--v=2"
- "--config-dir=/kube-dns-config"
env:
- name: PROMETHEUS_PORT
value: "10055"
image: <kubernetesKubeDNSSpec>
livenessProbe:
failureThreshold: 5
Expand All @@ -96,6 +101,9 @@ spec:
- containerPort: 10053
name: dns-tcp-local
protocol: TCP
- containerPort: 10055
name: metrics
protocol: TCP
readinessProbe:
httpGet:
path: "/readiness"
Expand Down

0 comments on commit 5e62bbf

Please sign in to comment.