upgrade nextcloud-webserver version
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
data_bak/
|
||||
data/
|
||||
backups/
|
||||
@@ -9,7 +9,7 @@ metadata:
|
||||
name: nextcloud-db
|
||||
namespace: nextcloud
|
||||
spec:
|
||||
replicas: 1
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: nextcloud-db
|
||||
|
||||
@@ -9,7 +9,7 @@ metadata:
|
||||
name: nextcloud-webserver
|
||||
namespace: nextcloud
|
||||
spec:
|
||||
replicas: 1
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: nextcloud-webserver
|
||||
@@ -24,7 +24,8 @@ spec:
|
||||
# image: nextcloud:apache
|
||||
# image: nextcloud:28.0.5-apache
|
||||
# image: nextcloud:28.0.6-apache
|
||||
image: nextcloud:29.0.1-apache
|
||||
# image: nextcloud:29.0.1-apache
|
||||
image: nextcloud:29.0.3-apache
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 80
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
apiVersion: batch/v1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: cron-php
|
||||
namespace: nextcloud
|
||||
spec:
|
||||
schedule: 2 * * * *
|
||||
jobTemplate:
|
||||
spec:
|
||||
ttlSecondsAfterFinished: 100
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: nextcloud-webserver-cron
|
||||
image: nextcloud:28.0.6-apache
|
||||
#command: "su -s /bin/sh www-data php cron.php"
|
||||
command: [ "su", "-s", "/bin/sh","www-data" ]
|
||||
args:
|
||||
- php cron.php
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: webserver-port
|
||||
env:
|
||||
- name: POSTGRES_HOST
|
||||
value: "db"
|
||||
volumeMounts:
|
||||
- name: nextcloud-webserver
|
||||
mountPath: /var/www/html
|
||||
securityContext:
|
||||
fsGroup: 33
|
||||
|
||||
restartPolicy: OnFailure
|
||||
volumes:
|
||||
- name: nextcloud-cron-job-php-log
|
||||
hostPath:
|
||||
path: /var/log/cron_job_php.log
|
||||
type: File
|
||||
|
||||
- name: nextcloud-webserver
|
||||
persistentVolumeClaim:
|
||||
claimName: nextcloud-webserver
|
||||
@@ -3,6 +3,8 @@ data:
|
||||
POSTGRES_DB: bmV4dGNsb3Vk
|
||||
POSTGRES_PASSWORD: bmV4dGNsb3Vk
|
||||
POSTGRES_USER: bmV4dGNsb3Vk
|
||||
PI_USER_USERNAME: cGk=
|
||||
PI_USER_PASSWORD: ZGlubmVyX3NsQHYz
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: nextcloud-credentials
|
||||
|
||||
Reference in New Issue
Block a user