Browse Source

[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
Bryan Strassner 4 months ago
parent
commit
425d8bdff8
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      charts/apiserver/templates/daemonset.yaml

+ 1
- 1
charts/apiserver/templates/daemonset.yaml View File

@@ -72,7 +72,7 @@ spec:
72 72
               - -c
73 73
               - |-
74 74
                 if [ ! -f /host{{ .Values.apiserver.host_etc_path }}/pki/apiserver-both.pem ]; then
75
-                  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
75
+                  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
76 76
                 fi
77 77
                 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'
78 78
                 exit $?

Loading…
Cancel
Save