proceed to nextcloud20

This commit is contained in:
jerger 2022-03-19 17:15:55 +01:00
parent f35983c6b4
commit ecca694f4c
3 changed files with 9 additions and 17 deletions

View file

@ -9,8 +9,6 @@
## Manual init the restic repository for the first time ## Manual init the restic repository for the first time
1. apply backup-and-restore pod:
`kubectl apply -f src/main/resources/backup/backup-restore-deployment.yaml`
1. Scale backup-restore deployment up: 1. Scale backup-restore deployment up:
`kubectl scale deployment backup-restore --replicas=1` `kubectl scale deployment backup-restore --replicas=1`
1. exec into pod and execute restore pod 1. exec into pod and execute restore pod
@ -24,12 +22,12 @@
1. Scale Cloud deployment down: 1. Scale Cloud deployment down:
`kubectl scale deployment cloud --replicas=0` `kubectl scale deployment cloud --replicas=0`
1. apply backup-and-restore pod: 1. Scale backup-restore deployment up:
`kubectl apply -f src/main/resources/backup/backup-restore-deployment.yaml` `kubectl scale deployment backup-restore --replicas=1`
1. exec into pod and execute restore pod 1. exec into pod and execute restore pod
`kubectl exec -it backup-restore -- /usr/local/bin/backup.sh` `kubectl exec -it backup-restore -- /usr/local/bin/backup.sh`
1. remove backup-and-restore pod: 1. Scale backup-restore deployment down:
`kubectl delete pod backup-restore` `kubectl scale deployment backup-restore --replicas=0`
1. Scale Cloud deployment up: 1. Scale Cloud deployment up:
`kubectl scale deployment cloud --replicas=1` `kubectl scale deployment cloud --replicas=1`
@ -38,13 +36,13 @@
1. Scale Cloud deployment down: 1. Scale Cloud deployment down:
`kubectl scale deployment cloud --replicas=0` `kubectl scale deployment cloud --replicas=0`
1. Scale backup-restore deployment up:
`kubectl scale deployment backup-restore --replicas=1`
1. apply backup-and-restore pod: 1. apply backup-and-restore pod:
`kubectl apply -f src/main/resources/backup/backup-restore-deployment.yaml` `kubectl apply -f src/main/resources/backup/backup-restore-deployment.yaml`
1. exec into pod and execute restore pod 1. exec into pod and execute restore pod
`kubectl exec -it backup-restore -- /usr/local/bin/restore.sh` `kubectl exec -it backup-restore -- /usr/local/bin/restore.sh`
1. remove backup-and-restore pod: 1. Scale backup-restore deployment down:
`kubectl delete pod backup-restore` `kubectl scale deployment backup-restore --replicas=0`
1. Scale Cloud deployment up: 1. Scale Cloud deployment up:
`kubectl scale deployment cloud --replicas=1` `kubectl scale deployment cloud --replicas=1`
1. Update index of Cloud:
Cloud > Settings > System > Advanced > Indexing

View file

@ -1,4 +1,4 @@
FROM nextcloud:19 FROM nextcloud:20
# Prepare Entrypoint Script # Prepare Entrypoint Script
ADD resources /tmp ADD resources /tmp

View file

@ -67,9 +67,6 @@ spec:
- name: cloud-secret-volume - name: cloud-secret-volume
mountPath: /var/run/secrets/cloud-secrets mountPath: /var/run/secrets/cloud-secrets
readOnly: true readOnly: true
- name: localstack-secret-volume
mountPath: /var/run/secrets/localstack-secrets
readOnly: true
volumes: volumes:
- name: cloud-data-volume - name: cloud-data-volume
persistentVolumeClaim: persistentVolumeClaim:
@ -80,6 +77,3 @@ spec:
- name: backup-secret-volume - name: backup-secret-volume
secret: secret:
secretName: backup-secret secretName: backup-secret
- name: localstack-secret-volume
secret:
secretName: localstack-secret