configure startupProbe

This commit is contained in:
James 2023-03-14 22:09:51 +00:00
parent afbb940694
commit d1015887e8

View File

@ -6,6 +6,8 @@ metadata:
{{- include "unifi-controller.labels" . | nindent 4 }}
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
{{- include "unifi-controller.selectorLabels" . | nindent 6 }}
@ -47,16 +49,17 @@ spec:
- name: syslog
containerPort: 5514
protocol: UDP
# livenessProbe:
# httpGet:
# path: /
# port: http
# initialDelaySeconds: 30
# readinessProbe:
# httpGet:
# path: /
# port: http
# initialDelaySeconds: 120
livenessProbe:
httpGet:
path: /
port: http
periodSeconds: 10
startupProbe:
httpGet:
path: /
port: http
periodSeconds: 10
failureThreshold: 30
env:
- name: TZ
value: {{ .Values.config.timezone }}