From dfdde2b5851b6d4bf3e45cb155fde5572f82c7ba Mon Sep 17 00:00:00 2001 From: Sandeep Rajan Date: Thu, 24 May 2018 08:24:32 -0400 Subject: [PATCH] update manifest --- deploy/addons/coredns/coreDNS-configmap.yaml | 1 + deploy/addons/coredns/coreDNS-controller.yaml | 7 +++++-- deploy/addons/coredns/coreDNS-svc.yaml | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/deploy/addons/coredns/coreDNS-configmap.yaml b/deploy/addons/coredns/coreDNS-configmap.yaml index 5f4edecf3840..c29ab8a46926 100644 --- a/deploy/addons/coredns/coreDNS-configmap.yaml +++ b/deploy/addons/coredns/coreDNS-configmap.yaml @@ -19,4 +19,5 @@ data: prometheus :9153 proxy . /etc/resolv.conf cache 30 + reload } diff --git a/deploy/addons/coredns/coreDNS-controller.yaml b/deploy/addons/coredns/coreDNS-controller.yaml index b7d77d637987..c62d63798d82 100644 --- a/deploy/addons/coredns/coreDNS-controller.yaml +++ b/deploy/addons/coredns/coreDNS-controller.yaml @@ -1,4 +1,4 @@ -apiVersion: apps/v1beta2 +apiVersion: apps/v1 kind: Deployment metadata: name: coredns @@ -29,7 +29,7 @@ spec: effect: NoSchedule containers: - name: coredns - image: registry.hub.docker.com/coredns/coredns:1.0.6 + image: registry.hub.docker.com/coredns/coredns:1.1.3 imagePullPolicy: IfNotPresent resources: limits: @@ -48,6 +48,9 @@ spec: - containerPort: 53 name: dns-tcp protocol: TCP + - containerPort: 9153 + name: metrics + protocol: TCP livenessProbe: httpGet: path: /health diff --git a/deploy/addons/coredns/coreDNS-svc.yaml b/deploy/addons/coredns/coreDNS-svc.yaml index c53916af3da1..187a28b09e61 100644 --- a/deploy/addons/coredns/coreDNS-svc.yaml +++ b/deploy/addons/coredns/coreDNS-svc.yaml @@ -3,6 +3,8 @@ kind: Service metadata: name: kube-dns namespace: kube-system + annotations: + prometheus.io/scrape: "true" labels: k8s-app: kube-dns addonmanager.kubernetes.io/mode: Reconcile