Longhorndified a ton of stuff.

This commit is contained in:
Aner Zakobar
2023-07-07 16:15:17 +03:00
parent e41a9f34e8
commit c709cea065
6 changed files with 76 additions and 37 deletions
+46 -2
View File
@@ -1,5 +1,41 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nextcloud-pvc
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 30Gi
storageClassName: longhorn
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nextcloud-postgres-pvc
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 5Gi
storageClassName: longhorn
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nextcloud-data-pvc
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 30Gi
storageClassName: longhorn
---
apiVersion: v1
kind: Secret
metadata:
name: nextcloud-postgres-pass
@@ -62,7 +98,7 @@ spec:
volumes:
- name: nextcloud-postgredb
persistentVolumeClaim:
claimName: homey-pvc-nfs
claimName: nextcloud-postgres-pvc
---
apiVersion: v1
kind: Service
@@ -101,6 +137,9 @@ spec:
- name: nextcloud-volume
mountPath: "/var/www/html"
subPath: nextcloud/html
- name: nextcloud-media
mountPath: "/var/www/html/data"
subPath: nextcloud/html/data
envFrom:
- configMapRef:
name: nextcloud-postgres-config
@@ -117,7 +156,10 @@ spec:
volumes:
- name: nextcloud-volume
persistentVolumeClaim:
claimName: homey-pvc-nfs
claimName: nextcloud-pvc
- name: nextcloud-media
persistentVolumeClaim:
claimName: nextcloud-data-pvc
---
apiVersion: v1
kind: Service
@@ -136,6 +178,7 @@ kind: Ingress
metadata:
name: nextcloud-ingress
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: 5g
nginx.ingress.kubernetes.io/server-snippet: |
# Make a regex exception for `/.well-known` so that clients can still
# access it despite the existence of the regex rule
@@ -160,3 +203,4 @@ spec:
name: nextcloud
port:
number: 80
---