Skip to content
Snippets Groups Projects
Commit 1bd1825e authored by Bogdan Dobrelya's avatar Bogdan Dobrelya
Browse files

Add missing liveness probe for apiserver static pod


Fix unreliable waiting for the apiserver to become ready.
Remove logfile mount to align with the rest of static pods
and because containers shall write logs to stdout only.

Signed-off-by: default avatarBogdan Dobrelya <bdobrelia@mirantis.com>
parent 20e36191
No related branches found
No related tags found
No related merge requests found
...@@ -48,7 +48,13 @@ spec: ...@@ -48,7 +48,13 @@ spec:
{% elif cloud_provider is defined and cloud_provider == "aws" %} {% elif cloud_provider is defined and cloud_provider == "aws" %}
- --cloud-provider={{ cloud_provider }} - --cloud-provider={{ cloud_provider }}
{% endif %} {% endif %}
- 2>&1 >> {{ kube_log_dir }}/kube-apiserver.log livenessProbe:
httpGet:
host: 127.0.0.1
path: /healthz
port: 8080
initialDelaySeconds: 30
timeoutSeconds: 10
volumeMounts: volumeMounts:
- mountPath: {{ kube_config_dir }} - mountPath: {{ kube_config_dir }}
name: kubernetes-config name: kubernetes-config
...@@ -59,8 +65,6 @@ spec: ...@@ -59,8 +65,6 @@ spec:
- mountPath: {{ etcd_cert_dir }} - mountPath: {{ etcd_cert_dir }}
name: etcd-certs name: etcd-certs
readOnly: true readOnly: true
- mountPath: /var/log/
name: logfile
volumes: volumes:
- hostPath: - hostPath:
path: {{ kube_config_dir }} path: {{ kube_config_dir }}
...@@ -71,6 +75,3 @@ spec: ...@@ -71,6 +75,3 @@ spec:
- hostPath: - hostPath:
path: {{ etcd_cert_dir }} path: {{ etcd_cert_dir }}
name: etcd-certs name: etcd-certs
- hostPath:
path: /var/log/
name: logfile
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment