Fix volume claim
This commit is contained in:
parent
f60cdc2630
commit
fe44c3e037
|
@ -11,32 +11,28 @@ spec:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: customer-node
|
app: customer-node
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
- metadata:
|
- metadata:
|
||||||
name: nextcloud-config
|
name: nextcloud-data
|
||||||
spec:
|
spec:
|
||||||
storageClassName: mayastor-3
|
storageClassName: mayastor-3
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 1Gi
|
storage: 1Gi
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
creationTimestamp:
|
creationTimestamp:
|
||||||
labels:
|
labels:
|
||||||
app: customer-node
|
app: customer-node
|
||||||
spec:
|
spec:
|
||||||
volumes:
|
|
||||||
- name: server-storage
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: customer-shared-storage-claim
|
|
||||||
containers:
|
containers:
|
||||||
- name: customer
|
- name: customer
|
||||||
image: docker.sunet.se/drive/nextcloud-custom:25.0.3.3-4
|
image: docker.sunet.se/drive/nextcloud-custom:25.0.3.3-4
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: nextcloud-config
|
- name: nextcloud-data
|
||||||
mountPath: /var/www/html/config/
|
mountPath: /var/www/html/config
|
||||||
subPath: config.php
|
subPath: config
|
||||||
initContainers:
|
initContainers:
|
||||||
- image: docker.sunet.se/sunet/docker-jinja:latest
|
- image: docker.sunet.se/sunet/docker-jinja:latest
|
||||||
name: init-config
|
name: init-config
|
||||||
|
@ -44,9 +40,9 @@ spec:
|
||||||
- name: nextcloud-config-template
|
- name: nextcloud-config-template
|
||||||
mountPath: /tmp/config.php.template
|
mountPath: /tmp/config.php.template
|
||||||
subPath: config.php
|
subPath: config.php
|
||||||
- name: nextcloud-config
|
- name: nextcloud-data
|
||||||
mountPath: /var/www/html/config/
|
mountPath: /var/www/html/config
|
||||||
subPath: config.php
|
subPath: config
|
||||||
env:
|
env:
|
||||||
- name: ADMIN_PASSWORD
|
- name: ADMIN_PASSWORD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
|
Loading…
Reference in a new issue