[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
This commit is contained in:
parent
fafdaae196
commit
425d8bdff8
@ -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 $?
|
||||
|
Loading…
x
Reference in New Issue
Block a user