chore(argo-workflows): templatize controller liveness probe

Signed-off-by: Alex Sears <me@alexsears.com>
This commit is contained in:
Alex Sears 2021-06-19 11:05:39 -04:00
parent 5bb12d0fca
commit 1de4eb9ab4
No known key found for this signature in database
GPG key ID: C5830CA0D9202CBF
2 changed files with 10 additions and 9 deletions

View file

@ -78,15 +78,7 @@ spec:
- name: metrics - name: metrics
containerPort: {{ .Values.controller.metricsConfig.port }} containerPort: {{ .Values.controller.metricsConfig.port }}
- containerPort: 6060 - containerPort: 6060
livenessProbe: livenessProbe: {{ .Values.controller.livenessProbe | toYaml | nindent 12 }}
httpGet:
port: 6060
path: /healthz
# Require three failures to tolerate transient errors.
failureThreshold: 3
initialDelaySeconds: 90
periodSeconds: 60
timeoutSeconds: 30
{{- with .Values.images.pullSecrets }} {{- with .Values.images.pullSecrets }}
imagePullSecrets: imagePullSecrets:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}

View file

@ -132,6 +132,15 @@ controller:
# service type `LoadBalancer` # service type `LoadBalancer`
loadBalancerSourceRanges: [] loadBalancerSourceRanges: []
resources: {} 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 ## Extra environment variables to provide to the controller container
## extraEnv: ## extraEnv: