Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Commit

Permalink
[v0.14.x] - Expose CoreDNS to Prometheus (#1635)
Browse files Browse the repository at this point in the history
* Allow prometheus to scrape coredns

* Fix bad copy and paste
  • Loading branch information
dominicgunn authored and davidmccormick committed Jun 27, 2019
1 parent 32089a0 commit 69d661d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions builtin/files/userdata/cloud-config-controller
Original file line number Diff line number Diff line change
Expand Up @@ -4238,6 +4238,11 @@ write_files:
metadata:
name: kube-dns
namespace: kube-system
{{- if eq .KubeDns.Provider "coredns" }}
annotations:
prometheus.io/port: "9153"
prometheus.io/scrape: "true"
{{- end }}
labels:
k8s-app: kube-dns
kubernetes.io/cluster-service: "true"
Expand Down

0 comments on commit 69d661d

Please sign in to comment.