wip feat(ci): Auto update k8s manifests, chart: add operator live/readiness probe (#860)

This commit is contained in:
Luigi Operoso
2023-06-25 21:34:27 +02:00
committed by GitHub
parent c2c249aa48
commit 97892a4cbd
3 changed files with 69 additions and 49 deletions
+14 -2
View File
@@ -31,7 +31,7 @@ spec:
protocol: TCP
command:
- /manager
args:
args:
{{- if .Values.webhook.enabled }}
- --validate-security-warnings
{{- end }}
@@ -41,6 +41,18 @@ spec:
name: webhook-certs
readOnly: true
{{- end }}
livenessProbe:
httpGet:
path: /healthz
port: 8081
initialDelaySeconds: 15
periodSeconds: 20
readinessProbe:
httpGet:
path: /readyz
port: 8081
initialDelaySeconds: 5
periodSeconds: 10
env:
- name: WATCH_NAMESPACE
value: {{ .Values.jenkins.namespace }}
@@ -71,4 +83,4 @@ spec:
defaultMode: 420
secretName: jenkins-{{ .Values.webhook.certificate.name }}
terminationGracePeriodSeconds: 10
{{- end }}
{{- end }}