From 1de4eb9ab4eb41fbfb581183dcf469ed6078f932 Mon Sep 17 00:00:00 2001 From: Alex Sears Date: Sat, 19 Jun 2021 11:05:39 -0400 Subject: [PATCH] chore(argo-workflows): templatize controller liveness probe Signed-off-by: Alex Sears --- .../controller/workflow-controller-deployment.yaml | 10 +--------- charts/argo-workflows/values.yaml | 9 +++++++++ 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/charts/argo-workflows/templates/controller/workflow-controller-deployment.yaml b/charts/argo-workflows/templates/controller/workflow-controller-deployment.yaml index 181dbf9a..e085b899 100644 --- a/charts/argo-workflows/templates/controller/workflow-controller-deployment.yaml +++ b/charts/argo-workflows/templates/controller/workflow-controller-deployment.yaml @@ -78,15 +78,7 @@ spec: - name: metrics containerPort: {{ .Values.controller.metricsConfig.port }} - containerPort: 6060 - livenessProbe: - httpGet: - port: 6060 - path: /healthz - # Require three failures to tolerate transient errors. - failureThreshold: 3 - initialDelaySeconds: 90 - periodSeconds: 60 - timeoutSeconds: 30 + livenessProbe: {{ .Values.controller.livenessProbe | toYaml | nindent 12 }} {{- with .Values.images.pullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} diff --git a/charts/argo-workflows/values.yaml b/charts/argo-workflows/values.yaml index c6af6902..864c9931 100644 --- a/charts/argo-workflows/values.yaml +++ b/charts/argo-workflows/values.yaml @@ -132,6 +132,15 @@ controller: # service type `LoadBalancer` loadBalancerSourceRanges: [] resources: {} + livenessProbe: + httpGet: + port: 6060 + path: /healthz + # Require three failures to tolerate transient errors. + failureThreshold: 3 + initialDelaySeconds: 90 + periodSeconds: 60 + timeoutSeconds: 30 ## Extra environment variables to provide to the controller container ## extraEnv: