From 86f9de8391260afa501fd9e49342a599dd899dfb Mon Sep 17 00:00:00 2001 From: Duncan <62943186+duncan485@users.noreply.github.com> Date: Thu, 11 Jan 2024 07:09:52 +0100 Subject: [PATCH] Parameterizing path for readiness and livenessprobe (#169) * parameterize path Signed-off-by: Duncan <62943186+duncan485@users.noreply.github.com> * Parameterize probe path Signed-off-by: Duncan <62943186+duncan485@users.noreply.github.com> --------- Signed-off-by: Duncan <62943186+duncan485@users.noreply.github.com> Co-authored-by: Matt Ray --- charts/opencost/templates/deployment.yaml | 8 ++++---- charts/opencost/values.yaml | 8 ++++++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/charts/opencost/templates/deployment.yaml b/charts/opencost/templates/deployment.yaml index d85a339..b726c2e 100644 --- a/charts/opencost/templates/deployment.yaml +++ b/charts/opencost/templates/deployment.yaml @@ -64,7 +64,7 @@ spec: {{- if .Values.opencost.exporter.livenessProbe.enabled }} livenessProbe: httpGet: - path: /healthz + path: {{ .Values.opencost.exporter.livenessProbe.path }} port: {{ .Values.opencost.exporter.apiPort }} initialDelaySeconds: {{ .Values.opencost.exporter.livenessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.opencost.exporter.livenessProbe.periodSeconds }} @@ -73,7 +73,7 @@ spec: {{- if .Values.opencost.exporter.readinessProbe.enabled }} readinessProbe: httpGet: - path: /healthz + path: {{ .Values.opencost.exporter.readinessProbe.path }} port: {{ .Values.opencost.exporter.apiPort }} initialDelaySeconds: {{ .Values.opencost.exporter.readinessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.opencost.exporter.readinessProbe.periodSeconds }} @@ -226,7 +226,7 @@ spec: {{- if .Values.opencost.ui.livenessProbe.enabled }} livenessProbe: httpGet: - path: /healthz + path: {{ .Values.opencost.ui.livenessProbe.path }} port: {{ .Values.opencost.ui.uiPort }} initialDelaySeconds: {{ .Values.opencost.ui.livenessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.opencost.ui.livenessProbe.periodSeconds }} @@ -235,7 +235,7 @@ spec: {{- if .Values.opencost.ui.readinessProbe.enabled }} readinessProbe: httpGet: - path: /healthz + path: {{ .Values.opencost.ui.readinessProbe.path }} port: {{ .Values.opencost.ui.uiPort }} initialDelaySeconds: {{ .Values.opencost.ui.readinessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.opencost.ui.readinessProbe.periodSeconds }} diff --git a/charts/opencost/values.yaml b/charts/opencost/values.yaml index f59246e..d3959bb 100644 --- a/charts/opencost/values.yaml +++ b/charts/opencost/values.yaml @@ -115,6 +115,8 @@ opencost: livenessProbe: # -- Whether probe is enabled enabled: true + # -- Probe path + path: /healthz # -- Number of seconds before probe is initiated initialDelaySeconds: 120 # -- Probe frequency in seconds @@ -125,6 +127,8 @@ opencost: readinessProbe: # -- Whether probe is enabled enabled: true + # -- Probe path + path: /healthz # -- Number of seconds before probe is initiated initialDelaySeconds: 120 # -- Probe frequency in seconds @@ -315,6 +319,8 @@ opencost: livenessProbe: # -- Whether probe is enabled enabled: true + # -- Probe path + path: /healthz # -- Number of seconds before probe is initiated initialDelaySeconds: 30 # -- Probe frequency in seconds @@ -325,6 +331,8 @@ opencost: readinessProbe: # -- Whether probe is enabled enabled: true + # -- Probe path + path: /healthz # -- Number of seconds before probe is initiated initialDelaySeconds: 30 # -- Probe frequency in seconds