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
name: dns-tcp
protocol: TCP
- containerPort: 9153
name: metrics
protocol: TCP
livenessProbe:
httpGet:
path: /health
@ -123,6 +126,8 @@ kind: Service
metadata:
name: kube-dns
namespace: kube-system
annotations:
prometheus.io/scrape: "true"
labels:
k8s-app: coredns
kubernetes.io/cluster-service: "true"