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
kind: ConfigMap
metadata:
name: nextcloud-config-template
name: nextcloud-configmap
data:
config.php: |
<?php

View file

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