diff --git a/builtin/files/userdata/cloud-config-controller b/builtin/files/userdata/cloud-config-controller index 09976c6b6..8627fc610 100644 --- a/builtin/files/userdata/cloud-config-controller +++ b/builtin/files/userdata/cloud-config-controller @@ -4056,6 +4056,8 @@ write_files: labels: k8s-app: kube-dns annotations: + prometheus.io/port: "9153" + prometheus.io/scrape: "true" seccomp.security.alpha.kubernetes.io/pod: 'docker/default' spec: priorityClassName: system-node-critical @@ -4150,11 +4152,6 @@ write_files: labels: k8s-app: kube-dns kubernetes.io/cluster-service: "true" - {{- if eq .KubeDns.Provider "coredns" }} - annotations: - prometheus.io/port: "9153" - prometheus.io/scrape: "true" - {{- end }} spec: # replicas: not specified here: # 1. In order to make Addon Manager do not reconcile this replicas parameter.