diff --git a/charts/unifi-controller/templates/deployment.yaml b/charts/unifi-controller/templates/deployment.yaml index 8aa1e77..3be04bf 100644 --- a/charts/unifi-controller/templates/deployment.yaml +++ b/charts/unifi-controller/templates/deployment.yaml @@ -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 }}