manifests/k8s: add service for discovering kube-dns metrics

The ports reflect the upstream kube-dns manifests of bootkube and
kubernetes/kubernetes.
This commit is contained in:
Frederic Branczyk
2016-12-02 14:01:02 +01:00
parent d0c1fb522b
commit a40ca507c6
3 changed files with 22 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
apiVersion: v1
kind: Service
metadata:
name: kube-dns-prometheus-discovery
labels:
k8s-app: kube-dns
spec:
selector:
k8s-app: kube-dns
type: ClusterIP
clusterIP: None
ports:
- name: prometheus-skydns
port: 10055
targetPort: 10055
protocol: TCP
- name: prometheus-dnsmasq
port: 10054
targetPort: 10054
protocol: TCP