From 9eeb3dd9d9ed8f7994f63523074da0c6d3bd4173 Mon Sep 17 00:00:00 2001 From: gjmzj Date: Mon, 1 Oct 2018 17:39:44 +0800 Subject: [PATCH] update coredns 1.2.2 --- roles/cluster-addon/templates/coredns.yaml.j2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/cluster-addon/templates/coredns.yaml.j2 b/roles/cluster-addon/templates/coredns.yaml.j2 index 4963a04..6913902 100644 --- a/roles/cluster-addon/templates/coredns.yaml.j2 +++ b/roles/cluster-addon/templates/coredns.yaml.j2 @@ -66,7 +66,9 @@ data: prometheus :9153 proxy . /etc/resolv.conf cache 30 + loop reload + loadbalance } --- apiVersion: extensions/v1beta1 @@ -103,7 +105,7 @@ spec: operator: "Exists" containers: - name: coredns - image: coredns/coredns:1.1.3 + image: coredns/coredns:1.2.2 imagePullPolicy: IfNotPresent resources: limits: @@ -158,6 +160,7 @@ metadata: name: kube-dns namespace: kube-system annotations: + prometheus.io/port: "9153" prometheus.io/scrape: "true" labels: k8s-app: kube-dns