Browse Source

Merge pull request #3287 from Kami-no/coredns_metrics

Monitor CoreDNS over svc
pull/3324/head
k8s-ci-robot 6 years ago
committed by GitHub
parent
commit
7f91f6e034
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 6 deletions
  1. 19
      roles/kubernetes-apps/ansible/templates/coredns-svc.yml.j2

19
roles/kubernetes-apps/ansible/templates/coredns-svc.yml.j2

@ -9,14 +9,21 @@ metadata:
kubernetes.io/cluster-service: "true"
addonmanager.kubernetes.io/mode: Reconcile
kubernetes.io/name: "CoreDNS"
annotations:
prometheus.io/path: /metrics
prometheus.io/port: "9153"
prometheus.io/scrape: "true"
spec:
selector:
k8s-app: coredns{{ coredns_ordinal_suffix | default('') }}
clusterIP: {{ clusterIP }}
ports:
- name: dns
port: 53
protocol: UDP
- name: dns-tcp
port: 53
protocol: TCP
- name: dns
port: 53
protocol: UDP
- name: dns-tcp
port: 53
protocol: TCP
- name: metrics
port: 9153
protocol: TCP
Loading…
Cancel
Save