Merge branch 'main' of ssh://repo.prod.meissa.de:2222/meissa/c4k-forgejo
This commit is contained in:
commit
08b965b3a4
3 changed files with 15 additions and 15 deletions
|
@ -10,32 +10,32 @@
|
||||||
## Manual init the restic repository for the first time
|
## Manual init the restic repository for the first time
|
||||||
|
|
||||||
1. apply backup-and-restore pod:
|
1. apply backup-and-restore pod:
|
||||||
`kubectl scale deployment backup-restore --replicas=1`
|
`kubectl -n forgejo scale deployment backup-restore --replicas=1`
|
||||||
2. exec into pod and execute restore pod (press tab to get your exact pod name)
|
2. exec into pod and execute restore pod (press tab to get your exact pod name)
|
||||||
`kubectl exec -it backup-restore-... -- /usr/local/bin/init.sh`
|
`kubectl -n forgejo exec -it backup-restore-... -- /usr/local/bin/init.bb`
|
||||||
3. remove backup-and-restore pod:
|
3. remove backup-and-restore pod:
|
||||||
`kubectl scale deployment backup-restore --replicas=0`
|
`kubectl -n forgejo scale deployment backup-restore --replicas=0`
|
||||||
|
|
||||||
|
|
||||||
## Manual backup the restic repository for the first time
|
## Manual backup the restic repository for the first time
|
||||||
|
|
||||||
1. apply backup-and-restore pod:
|
1. apply backup-and-restore pod:
|
||||||
`kubectl scale deployment backup-restore --replicas=1`
|
`kubectl -n forgejo scale deployment backup-restore --replicas=1`
|
||||||
2. exec into pod and execute backup pod (press tab to get your exact pod name)
|
2. exec into pod and execute backup pod (press tab to get your exact pod name)
|
||||||
`kubectl exec -it backup-restore-... -- /usr/local/bin/backup.sh`
|
`kubectl -n forgejo exec -it backup-restore-... -- /usr/local/bin/backup.bb`
|
||||||
3. remove backup-and-restore pod:
|
3. remove backup-and-restore pod:
|
||||||
`kubectl scale deployment backup-restore --replicas=0`
|
`kubectl -n forgejo scale deployment backup-restore --replicas=0`
|
||||||
|
|
||||||
|
|
||||||
## Manual restore
|
## Manual restore
|
||||||
|
|
||||||
1. apply backup-and-restore pod:
|
1. apply backup-and-restore pod:
|
||||||
`kubectl scale deployment backup-restore --replicas=1`
|
`kubectl -n forgejo scale deployment backup-restore --replicas=1`
|
||||||
2. Scale down forgejo deployment:
|
2. Scale down forgejo deployment:
|
||||||
`kubectl scale deployment forgejo --replicas=0`
|
`kubectl -n forgejo scale deployment forgejo --replicas=0`
|
||||||
3. exec into pod and execute restore pod (press tab to get your exact pod name)
|
3. exec into pod and execute restore pod (press tab to get your exact pod name)
|
||||||
`kubectl exec -it backup-restore-... -- /usr/local/bin/restore.sh`
|
`kubectl -n forgejo exec -it backup-restore-... -- /usr/local/bin/restore.bb`
|
||||||
4. Start forgejo again:
|
4. Start forgejo again:
|
||||||
`kubectl scale deployment forgejo --replicas=1`
|
`kubectl -n forgejo scale deployment forgejo --replicas=1`
|
||||||
5. remove backup-and-restore pod:
|
5. remove backup-and-restore pod:
|
||||||
`kubectl scale deployment backup-restore --replicas=0`
|
`kubectl -n forgejo scale deployment backup-restore --replicas=0`
|
||||||
|
|
|
@ -69,11 +69,11 @@
|
||||||
(defn data-storage-by-volume-size
|
(defn data-storage-by-volume-size
|
||||||
[total]
|
[total]
|
||||||
total)
|
total)
|
||||||
|
;;TODO: remove unneccessaries, fedaration is merged
|
||||||
(def federated-image-name "domaindrivenarchitecture/c4k-forgejo-federated")
|
(def federated-image-name "domaindrivenarchitecture/c4k-forgejo-federated")
|
||||||
(def federated-image-version "latest")
|
(def federated-image-version "latest")
|
||||||
(def non-federated-image-name "codeberg.org/forgejo/forgejo")
|
(def non-federated-image-name "codeberg.org/forgejo/forgejo")
|
||||||
(def non-federated-image-version "8.0")
|
(def non-federated-image-version "8.0.3")
|
||||||
|
|
||||||
(defn-spec generate-image-str string?
|
(defn-spec generate-image-str string?
|
||||||
[config config?]
|
[config config?]
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
(deftest should-generate-image-str
|
(deftest should-generate-image-str
|
||||||
(testing "non-federated-image"
|
(testing "non-federated-image"
|
||||||
(is (= "codeberg.org/forgejo/forgejo:8.0"
|
(is (= "codeberg.org/forgejo/forgejo:8.0.3"
|
||||||
(cut/generate-image-str {:fqdn "test.de"
|
(cut/generate-image-str {:fqdn "test.de"
|
||||||
:mailer-from ""
|
:mailer-from ""
|
||||||
:mailer-host "m.t.de"
|
:mailer-host "m.t.de"
|
||||||
|
@ -97,7 +97,7 @@
|
||||||
:spec
|
:spec
|
||||||
{:containers
|
{:containers
|
||||||
[{:name "forgejo",
|
[{:name "forgejo",
|
||||||
:image "codeberg.org/forgejo/forgejo:8.0",
|
:image "codeberg.org/forgejo/forgejo:8.0.3",
|
||||||
:imagePullPolicy "IfNotPresent",
|
:imagePullPolicy "IfNotPresent",
|
||||||
:envFrom [{:configMapRef {:name "forgejo-env"}} {:secretRef {:name "forgejo-secrets"}}],
|
:envFrom [{:configMapRef {:name "forgejo-env"}} {:secretRef {:name "forgejo-secrets"}}],
|
||||||
:volumeMounts [{:name "forgejo-data-volume", :mountPath "/data"}],
|
:volumeMounts [{:name "forgejo-data-volume", :mountPath "/data"}],
|
||||||
|
|
Loading…
Reference in a new issue