make discoverable by prometheus (#66)

This commit is contained in:
Chris O'Haver 2018-04-02 09:42:03 -04:00 committed by GitHub
parent 5bb111266e
commit 73c6d4de27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -100,6 +100,9 @@ spec:
- containerPort: 53 - containerPort: 53
name: dns-tcp name: dns-tcp
protocol: TCP protocol: TCP
- containerPort: 9153
name: metrics
protocol: TCP
livenessProbe: livenessProbe:
httpGet: httpGet:
path: /health path: /health
@ -123,6 +126,8 @@ kind: Service
metadata: metadata:
name: kube-dns name: kube-dns
namespace: kube-system namespace: kube-system
annotations:
prometheus.io/scrape: "true"
labels: labels:
k8s-app: coredns k8s-app: coredns
kubernetes.io/cluster-service: "true" kubernetes.io/cluster-service: "true"