[nextcloud] add probes && switch to alpine
This commit is contained in:
parent
3fece5e447
commit
bcf64117d1
1 changed files with 34 additions and 1 deletions
|
@ -81,10 +81,43 @@ spec:
|
|||
mountPath: "/etc/letsencrypt"
|
||||
- name: nextcloud-data
|
||||
mountPath: "/var/www/html"
|
||||
# Is it ready to work?
|
||||
readinessProbe:
|
||||
tcpSocket:
|
||||
port: 443
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
# Is it still working?
|
||||
livenessProbe:
|
||||
tcpSocket:
|
||||
port: 443
|
||||
initialDelaySeconds: 15
|
||||
periodSeconds: 20
|
||||
- name: nextcloud
|
||||
image: nextcloud:{{ .Chart.AppVersion }}-fpm
|
||||
image: nextcloud:{{ .Chart.AppVersion }}-fpm-alpine
|
||||
# Wait for 10 minutes to get ready
|
||||
startupProbe:
|
||||
httpGet:
|
||||
path: /ocs/v2.php/apps/serverinfo/api/v1/info
|
||||
port: fpm
|
||||
failureThreshold: 20
|
||||
periodSeconds: 30
|
||||
# Dead if failing for 1 minute
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /ocs/v2.php/apps/serverinfo/api/v1/info
|
||||
port: fpm
|
||||
failureThreshold: 6
|
||||
periodSeconds: 10
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /ocs/v2.php/apps/serverinfo/api/v1/info
|
||||
port: fpm
|
||||
failureThreshold: 3
|
||||
periodSeconds: 30
|
||||
ports:
|
||||
- containerPort: 9000
|
||||
name: fpm
|
||||
env:
|
||||
- name: POSTGRES_DB
|
||||
valueFrom:
|
||||
|
|
Loading…
Reference in a new issue