upgrade nextcloud-webserver version

This commit is contained in:
2024-07-17 08:41:57 +01:00
parent f8eb20b20f
commit d8e117b7f7
5 changed files with 51 additions and 3 deletions
+3
View File
@@ -0,0 +1,3 @@
data_bak/
data/
backups/
+1 -1
View File
@@ -9,7 +9,7 @@ metadata:
name: nextcloud-db
namespace: nextcloud
spec:
replicas: 1
replicas: 2
selector:
matchLabels:
app: nextcloud-db
+3 -2
View File
@@ -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
+42
View File
@@ -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
+2
View File
@@ -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