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

[v0.14.x] - Expose CoreDNS to Prometheus #1635

Merged
merged 2 commits into from
Jun 27, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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