From fd2bc52ff46c0b068fcf9607304a0ae29937f62e Mon Sep 17 00:00:00 2001 From: George Angel Date: Tue, 15 Jan 2019 15:06:18 +0000 Subject: [PATCH] sys: copy config from upstream - longer initialDelay for the livenessProbe. Safety if apiservers are running slow for w/e reason - exclude etcd from livenessProbe. No reason to restart apiserver is etcd isn't there - readinessProbe, don't hammer unhealthy apiservers --- resources/kube-apiserver.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/resources/kube-apiserver.yaml b/resources/kube-apiserver.yaml index 6734ada..cc74b56 100644 --- a/resources/kube-apiserver.yaml +++ b/resources/kube-apiserver.yaml @@ -49,11 +49,19 @@ spec: - --kubelet-client-key=/etc/kubernetes/ssl/apiserver-kubelet-client-key.pem - --v=0 livenessProbe: + httpGet: + host: 127.0.0.1 + port: 8080 + path: /healthz?exclude=etcd + # https://github.com/kubernetes/kubernetes/pull/71054/files#diff-e6e5eefc330d75c8ef2e218de62c5fdfR57 + initialDelaySeconds: 45 + timeoutSeconds: 15 + # https://github.com/kubernetes/kubernetes/blob/master/cluster/gce/manifests/kube-apiserver.manifest#L42 + readinessProbe: httpGet: host: 127.0.0.1 port: 8080 path: /healthz - initialDelaySeconds: 15 timeoutSeconds: 15 ports: - containerPort: 443