ADD: implement migration and backup configurations for Nextcloud with Longhorn support
This commit is contained in:
@@ -16,12 +16,19 @@ spec:
|
||||
# fsGroup sorgt dafür, dass gemountete Volumes die Gruppe www-data (33) bekommen
|
||||
securityContext:
|
||||
fsGroup: 33
|
||||
# Auf knode0 zwingen (hat Kernel 6.1 mit NFS - Kompatibilität)
|
||||
nodeSelector:
|
||||
kubernetes.io/hostname: knode0
|
||||
# hostAliases mappt die öffentliche Domain intern auf die Service-ClusterIP,
|
||||
# damit der Pod henryathome.home64.de direkt intern erreicht (vermeidet externe Loopback/Firewall/403)
|
||||
hostAliases:
|
||||
- ip: "10.43.107.87"
|
||||
hostnames:
|
||||
- "henryathome.home64.de"
|
||||
initContainers:
|
||||
- name: wait-for-mariadb
|
||||
image: busybox:1.34
|
||||
command: ['sh', '-c', 'until nc -z mariadb.nextcloud.svc.cluster.local 3306; do echo waiting for mariadb; sleep 2; done;']
|
||||
containers:
|
||||
- name: nextcloud
|
||||
image: nextcloud:33-apache
|
||||
@@ -73,7 +80,7 @@ spec:
|
||||
claimName: nextcloud-data-pvc
|
||||
- name: config
|
||||
persistentVolumeClaim:
|
||||
claimName: nextcloud-config-pvc
|
||||
claimName: nextcloud-config-pvc-longhorn
|
||||
- name: apps
|
||||
persistentVolumeClaim:
|
||||
claimName: nextcloud-apps-pvc
|
||||
claimName: nextcloud-apps-pvc-longhorn
|
||||
Reference in New Issue
Block a user