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

@ -11,32 +11,28 @@ spec:
matchLabels:
app: customer-node
volumeClaimTemplates:
- metadata:
name: nextcloud-config
spec:
storageClassName: mayastor-3
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
- metadata:
name: nextcloud-data
spec:
storageClassName: mayastor-3
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
template:
metadata:
creationTimestamp:
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: