From 20b2659b8942de05659627ab54d8ea317e168b9f Mon Sep 17 00:00:00 2001 From: jerger Date: Sat, 19 Mar 2022 17:33:09 +0100 Subject: [PATCH] improve doc --- doc/BackupAndRestore.md | 8 ++++---- doc/Upgrade.md | 10 ++++++++++ 2 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 doc/Upgrade.md diff --git a/doc/BackupAndRestore.md b/doc/BackupAndRestore.md index adff4fe..fbf939b 100644 --- a/doc/BackupAndRestore.md +++ b/doc/BackupAndRestore.md @@ -21,7 +21,7 @@ ## Manual backup the restic repository for the first time 1. Scale Cloud deployment down: - `kubectl scale deployment cloud --replicas=0` + `kubectl scale deployment cloud-deployment --replicas=0` 1. Scale backup-restore deployment up: `kubectl scale deployment backup-restore --replicas=1` 1. exec into pod and execute restore pod @@ -29,13 +29,13 @@ 1. Scale backup-restore deployment down: `kubectl scale deployment backup-restore --replicas=0` 1. Scale Cloud deployment up: - `kubectl scale deployment cloud --replicas=1` + `kubectl scale deployment cloud-deployment --replicas=1` ## Manual restore 1. Scale Cloud deployment down: - `kubectl scale deployment cloud --replicas=0` + `kubectl scale deployment cloud-deployment --replicas=0` 1. Scale backup-restore deployment up: `kubectl scale deployment backup-restore --replicas=1` 1. apply backup-and-restore pod: @@ -45,4 +45,4 @@ 1. Scale backup-restore deployment down: `kubectl scale deployment backup-restore --replicas=0` 1. Scale Cloud deployment up: - `kubectl scale deployment cloud --replicas=1` + `kubectl scale deployment cloud-deployment --replicas=1` diff --git a/doc/Upgrade.md b/doc/Upgrade.md new file mode 100644 index 0000000..e0f6f58 --- /dev/null +++ b/doc/Upgrade.md @@ -0,0 +1,10 @@ +# Upgrade with a new nextcloud version + +1. Pull a new image +1. Trigger deployment + +``` +k3s crictl pull domaindrivenarchitecture/c4k-cloud +k3s crictl images +kubectl set env deployment cloud-deployment DEPLOY_DATE="$(date)" +``` \ No newline at end of file