Fix volume claim

This commit is contained in:
Micke Nordin 2023-03-28 23:14:35 +02:00
parent e2cbca972f
commit f60cdc2630
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257
2 changed files with 13 additions and 3 deletions

View file

@ -1,7 +1,7 @@
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: nextcloud-config-template name: nextcloud-configmap
data: data:
config.php: | config.php: |
<?php <?php

View file

@ -10,6 +10,16 @@ spec:
selector: selector:
matchLabels: matchLabels:
app: customer-node app: customer-node
volumeClaimTemplates:
- metadata:
name: nextcloud-config
spec:
storageClassName: mayastor-3
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
template: template:
metadata: metadata:
creationTimestamp: creationTimestamp:
@ -25,7 +35,7 @@ spec:
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-config
mountPath: /var/www/html/config/config.php mountPath: /var/www/html/config/
subPath: config.php subPath: config.php
initContainers: initContainers:
- image: docker.sunet.se/sunet/docker-jinja:latest - image: docker.sunet.se/sunet/docker-jinja:latest
@ -35,7 +45,7 @@ spec:
mountPath: /tmp/config.php.template mountPath: /tmp/config.php.template
subPath: config.php subPath: config.php
- name: nextcloud-config - name: nextcloud-config
mountPath: /var/www/html/config/config.php mountPath: /var/www/html/config/
subPath: config.php subPath: config.php
env: env:
- name: ADMIN_PASSWORD - name: ADMIN_PASSWORD