diff --git a/builtin/files/userdata/cloud-config-controller b/builtin/files/userdata/cloud-config-controller index fcfedda84..d2569a264 100644 --- a/builtin/files/userdata/cloud-config-controller +++ b/builtin/files/userdata/cloud-config-controller @@ -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"