From 37c3d68a91d198beb9bd8969443a546a6c4b73a9 Mon Sep 17 00:00:00 2001 From: Sandeep Rajan Date: Fri, 15 Feb 2019 12:04:16 -0500 Subject: [PATCH] Add readinessProbe --- cluster/addons/dns/coredns/coredns.yaml.base | 5 +++++ cluster/addons/dns/coredns/coredns.yaml.in | 5 +++++ cluster/addons/dns/coredns/coredns.yaml.sed | 5 +++++ cmd/kubeadm/app/phases/addons/dns/manifests.go | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/cluster/addons/dns/coredns/coredns.yaml.base b/cluster/addons/dns/coredns/coredns.yaml.base index 1867a91ded..6936dc7921 100644 --- a/cluster/addons/dns/coredns/coredns.yaml.base +++ b/cluster/addons/dns/coredns/coredns.yaml.base @@ -147,6 +147,11 @@ spec: timeoutSeconds: 5 successThreshold: 1 failureThreshold: 5 + readinessProbe: + httpGet: + path: /health + port: 8080 + scheme: HTTP securityContext: allowPrivilegeEscalation: false capabilities: diff --git a/cluster/addons/dns/coredns/coredns.yaml.in b/cluster/addons/dns/coredns/coredns.yaml.in index 952c0f5375..0821820fd2 100644 --- a/cluster/addons/dns/coredns/coredns.yaml.in +++ b/cluster/addons/dns/coredns/coredns.yaml.in @@ -147,6 +147,11 @@ spec: timeoutSeconds: 5 successThreshold: 1 failureThreshold: 5 + readinessProbe: + httpGet: + path: /health + port: 8080 + scheme: HTTP securityContext: allowPrivilegeEscalation: false capabilities: diff --git a/cluster/addons/dns/coredns/coredns.yaml.sed b/cluster/addons/dns/coredns/coredns.yaml.sed index 647c0bb6e8..38688ced30 100644 --- a/cluster/addons/dns/coredns/coredns.yaml.sed +++ b/cluster/addons/dns/coredns/coredns.yaml.sed @@ -147,6 +147,11 @@ spec: timeoutSeconds: 5 successThreshold: 1 failureThreshold: 5 + readinessProbe: + httpGet: + path: /health + port: 8080 + scheme: HTTP securityContext: allowPrivilegeEscalation: false capabilities: diff --git a/cmd/kubeadm/app/phases/addons/dns/manifests.go b/cmd/kubeadm/app/phases/addons/dns/manifests.go index e149c2168f..74375c5744 100644 --- a/cmd/kubeadm/app/phases/addons/dns/manifests.go +++ b/cmd/kubeadm/app/phases/addons/dns/manifests.go @@ -279,6 +279,11 @@ spec: timeoutSeconds: 5 successThreshold: 1 failureThreshold: 5 + readinessProbe: + httpGet: + path: /health + port: 8080 + scheme: HTTP securityContext: allowPrivilegeEscalation: false capabilities: