From 7423932510d97262cf2e59538e8ee6812f534672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kr=C3=BCger?= Date: Tue, 28 May 2019 15:47:57 +0200 Subject: [PATCH] Add ready plugin for CoreDNS (#4817) --- roles/kubernetes-apps/ansible/templates/coredns-config.yml.j2 | 1 + .../ansible/templates/coredns-deployment.yml.j2 | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/roles/kubernetes-apps/ansible/templates/coredns-config.yml.j2 b/roles/kubernetes-apps/ansible/templates/coredns-config.yml.j2 index 7ee8eb013..6e9944d37 100644 --- a/roles/kubernetes-apps/ansible/templates/coredns-config.yml.j2 +++ b/roles/kubernetes-apps/ansible/templates/coredns-config.yml.j2 @@ -11,6 +11,7 @@ data: .:53 { errors health + ready kubernetes {{ dns_domain }} in-addr.arpa ip6.arpa { pods insecure {% if resolvconf_mode == 'host_resolvconf' and upstream_dns_servers is defined and upstream_dns_servers|length > 0 %} diff --git a/roles/kubernetes-apps/ansible/templates/coredns-deployment.yml.j2 b/roles/kubernetes-apps/ansible/templates/coredns-deployment.yml.j2 index c20e6cf16..e6406efb5 100644 --- a/roles/kubernetes-apps/ansible/templates/coredns-deployment.yml.j2 +++ b/roles/kubernetes-apps/ansible/templates/coredns-deployment.yml.j2 @@ -96,8 +96,8 @@ spec: failureThreshold: 10 readinessProbe: httpGet: - path: /health - port: 8080 + path: /ready + port: 8181 scheme: HTTP timeoutSeconds: 5 successThreshold: 1