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 ad4741f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
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 ad4741f

Please sign in to comment.