Add Liveness Probe to Openstack Exporter Deployment

Kill the openstack exporter pod if it is not ready after 3 mintues

Change-Id: Id20d01052aecce19b845c610424c5375dc14cd43
This commit is contained in:
Steven Fitzpatrick 2020-02-25 13:35:19 -06:00
parent e54f5f778f
commit 05d4b34715

View File

@ -69,12 +69,18 @@ spec:
ports:
- name: metrics
containerPort: {{ tuple "prometheus_openstack_exporter" "internal" "exporter" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
livenessProbe:
httpGet:
path: /metrics
port: {{ tuple "prometheus_openstack_exporter" "internal" "exporter" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
initialDelaySeconds: 180
periodSeconds: 60
readinessProbe:
httpGet:
path: /metrics
port: {{ tuple "prometheus_openstack_exporter" "internal" "exporter" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
initialDelaySeconds: 20
periodSeconds: 10
periodSeconds: 30
env:
- name: LISTEN_PORT
value: {{ tuple "prometheus_openstack_exporter" "internal" "exporter" . | include "helm-toolkit.endpoints.endpoint_port_lookup" | quote }}