Browse Source

Add startupProbe (used in k8s1.16+) with very large FailureThreshold. Objective is to absolutely avoid peertube to be killed during an upgrade process. For normal start, there is no delay as StartupProbe will quuickly see everything are Ok

master post_k8s1.16
LecygneNoir 3 years ago
parent
commit
047c1eb3bc
1 changed files with 33 additions and 4 deletions
  1. +33
    -4
      templates/deployment.yaml

+ 33
- 4
templates/deployment.yaml View File

@ -61,6 +61,13 @@ spec:
- name: http
containerPort: {{ .Values.ports.nginxproxyPort }}
protocol: TCP
startupProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 300
failureThreshold: 30
periodSeconds: 10
livenessProbe:
httpGet:
path: /
@ -93,16 +100,27 @@ spec:
containerPort: {{ .Values.ports.livePort }}
protocol: TCP
{{- end }}
startupProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 300
failureThreshold: 3000
periodSeconds: 10
livenessProbe:
httpGet:
path: /
port: 9000
initialDelaySeconds: 60
initialDelaySeconds: 600
failureThreshold: 3
periodSeconds: 10
readinessProbe:
httpGet:
path: /
port: 9000
initialDelaySeconds: 60
initialDelaySeconds: 300
failureThreshold: 3
periodSeconds: 10
{{- else }}
ports:
- name: http
@ -113,16 +131,27 @@ spec:
containerPort: {{ .Values.ports.livePort }}
protocol: TCP
{{- end }}
startupProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 300
failureThreshold: 3000
periodSeconds: 10
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 60
initialDelaySeconds: 600
failureThreshold: 3
periodSeconds: 10
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 60
initialDelaySeconds: 300
failureThreshold: 3
periodSeconds: 10
{{- end }}
command:
- gosu

Loading…
Cancel
Save