Fix volume claim

This commit is contained in:
Micke Nordin 2023-03-28 23:24:40 +02:00
parent f60cdc2630
commit fe44c3e037
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257

View file

@ -12,7 +12,7 @@ spec:
app: customer-node
volumeClaimTemplates:
- metadata:
name: nextcloud-config
name: nextcloud-data
spec:
storageClassName: mayastor-3
accessModes:
@ -26,17 +26,13 @@ spec:
labels:
app: customer-node
spec:
volumes:
- name: server-storage
persistentVolumeClaim:
claimName: customer-shared-storage-claim
containers:
- name: customer
image: docker.sunet.se/drive/nextcloud-custom:25.0.3.3-4
volumeMounts:
- name: nextcloud-config
mountPath: /var/www/html/config/
subPath: config.php
- name: nextcloud-data
mountPath: /var/www/html/config
subPath: config
initContainers:
- image: docker.sunet.se/sunet/docker-jinja:latest
name: init-config
@ -44,9 +40,9 @@ spec:
- name: nextcloud-config-template
mountPath: /tmp/config.php.template
subPath: config.php
- name: nextcloud-config
mountPath: /var/www/html/config/
subPath: config.php
- name: nextcloud-data
mountPath: /var/www/html/config
subPath: config
env:
- name: ADMIN_PASSWORD
valueFrom: