Skip to content

Commit

Permalink
fix: readiness/liveness
Browse files Browse the repository at this point in the history
Signed-off-by: yu-croco <[email protected]>
  • Loading branch information
yu-croco committed Feb 20, 2025
1 parent 200c26d commit 74d3f1c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion charts/argo-workflows/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ annotations:
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
artifacthub.io/changes: |
- kind: added
description: Support readinessProbe to server
description: Support livenessProbe to server
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ crds:
keep: false

server:
readinessProbe:
livenessProbe:
enabled: true
18 changes: 9 additions & 9 deletions charts/argo-workflows/templates/server/server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,16 @@ spec:
{{- end }}
initialDelaySeconds: 10
periodSeconds: 20
{{- if .Values.server.readinessProbe.enabled }}
readinessProbe:
{{- if .Values.server.livenessProbe.enabled }}
livenessProbe:
httpGet:
path: {{ .Values.server.readinessProbe.httpGet.path }}
port: {{ .Values.server.readinessProbe.httpGet.port }}
initialDelaySeconds: {{ .Values.server.readinessProbe.initialDelaySeconds }}
timeoutSeconds: {{ .Values.server.readinessProbe.timeoutSeconds }}
periodSeconds: {{ .Values.server.readinessProbe.periodSeconds }}
successThreshold: {{ .Values.server.readinessProbe.successThreshold }}
failureThreshold: {{ .Values.server.readinessProbe.failureThreshold }}
path: {{ .Values.server.livenessProbe.httpGet.path }}
port: {{ .Values.server.livenessProbe.httpGet.port }}
initialDelaySeconds: {{ .Values.server.livenessProbe.initialDelaySeconds }}
timeoutSeconds: {{ .Values.server.livenessProbe.timeoutSeconds }}
periodSeconds: {{ .Values.server.livenessProbe.periodSeconds }}
successThreshold: {{ .Values.server.livenessProbe.successThreshold }}
failureThreshold: {{ .Values.server.livenessProbe.failureThreshold }}
{{- end }}
env:
- name: IN_CLUSTER
Expand Down
10 changes: 5 additions & 5 deletions charts/argo-workflows/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -776,15 +776,15 @@ server:
# -- terminationGracePeriodSeconds for container lifecycle hook
terminationGracePeriodSeconds: 30

# -- Configure readiness [probe] for the server
# -- Configure liveness [probe] for the server
# @default -- See [values.yaml]
readinessProbe:
# -- Enable Kubernetes readiness probe for server
livenessProbe:
# -- Enable Kubernetes liveness probe for server
enabled: false
httpGet:
# -- Http port to use for the readiness probe
# -- Http port to use for the liveness probe
port: 2746
# -- Http path to use for the readiness probe
# -- Http path to use for the liveness probe
path: /
# -- Minimum consecutive failures for the [probe] to be considered failed after having succeeded
failureThreshold: 3
Expand Down

0 comments on commit 74d3f1c

Please sign in to comment.