Skip to content

Commit

Permalink
Parameterizing path for readiness and livenessprobe (#169)
Browse files Browse the repository at this point in the history
* parameterize path

Signed-off-by: Duncan <[email protected]>

* Parameterize probe path

Signed-off-by: Duncan <[email protected]>

---------

Signed-off-by: Duncan <[email protected]>
Co-authored-by: Matt Ray <[email protected]>
  • Loading branch information
duncan485 and mattray authored Jan 11, 2024
1 parent 12889f3 commit 86f9de8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 4 additions & 4 deletions charts/opencost/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand Down
8 changes: 8 additions & 0 deletions charts/opencost/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 86f9de8

Please sign in to comment.