From 425d8bdff8b5fb9aadd22bfbf6de727986e7abe0 Mon Sep 17 00:00:00 2001 From: Bryan Strassner Date: Fri, 30 Nov 2018 15:39:43 -0600 Subject: [PATCH] [FIX] liveness probe file location fix Fixes the destination for the file created during the liveness probe for the apiserver anchor pod so that it exists in the desired location for the subsequent check. Change-Id: I29966ee47524f73b018cc6ea85854a42a406dfc3 --- charts/apiserver/templates/daemonset.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/apiserver/templates/daemonset.yaml b/charts/apiserver/templates/daemonset.yaml index 95559c8a..f50a05da 100644 --- a/charts/apiserver/templates/daemonset.yaml +++ b/charts/apiserver/templates/daemonset.yaml @@ -72,7 +72,7 @@ spec: - -c - |- if [ ! -f /host{{ .Values.apiserver.host_etc_path }}/pki/apiserver-both.pem ]; then - cat /host{{ .Values.apiserver.host_etc_path }}/pki/apiserver-key.pem /host{{ .Values.apiserver.host_etc_path }}/pki/apiserver.pem > /etc/kubernetes/apiserver/pki/apiserver-both.pem + cat /host{{ .Values.apiserver.host_etc_path }}/pki/apiserver-key.pem /host{{ .Values.apiserver.host_etc_path }}/pki/apiserver.pem > /host{{ .Values.apiserver.host_etc_path }}/pki/apiserver-both.pem fi echo -e 'GET /healthz HTTP/1.0\r\n' | socat - openssl:localhost:{{ .Values.network.kubernetes_apiserver.port }},cert=/host{{ .Values.apiserver.host_etc_path }}/pki/apiserver-both.pem,cafile=/host{{ .Values.apiserver.host_etc_path }}/pki/cluster-ca.pem | grep '200 OK' exit $?