diff --git a/parts/k8s/addons/kubernetesmasteraddons-kube-dns-deployment.yaml b/parts/k8s/addons/kubernetesmasteraddons-kube-dns-deployment.yaml index 5f736b1589..407dd212a8 100644 --- a/parts/k8s/addons/kubernetesmasteraddons-kube-dns-deployment.yaml +++ b/parts/k8s/addons/kubernetesmasteraddons-kube-dns-deployment.yaml @@ -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" @@ -78,6 +80,9 @@ spec: - "--dns-port=10053" - "--v=2" - "--config-dir=/kube-dns-config" + env: + - name: PROMETHEUS_PORT + value: "10055" image: livenessProbe: failureThreshold: 5 @@ -96,6 +101,9 @@ spec: - containerPort: 10053 name: dns-tcp-local protocol: TCP + - containerPort: 10055 + name: metrics + protocol: TCP readinessProbe: httpGet: path: "/readiness"