From 05d4b347156d91678077b618206618973fc505d8 Mon Sep 17 00:00:00 2001 From: Steven Fitzpatrick Date: Tue, 25 Feb 2020 13:35:19 -0600 Subject: [PATCH] Add Liveness Probe to Openstack Exporter Deployment Kill the openstack exporter pod if it is not ready after 3 mintues Change-Id: Id20d01052aecce19b845c610424c5375dc14cd43 --- prometheus-openstack-exporter/templates/deployment.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/prometheus-openstack-exporter/templates/deployment.yaml b/prometheus-openstack-exporter/templates/deployment.yaml index 15b595f0a7..16d1683e77 100644 --- a/prometheus-openstack-exporter/templates/deployment.yaml +++ b/prometheus-openstack-exporter/templates/deployment.yaml @@ -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 }}