2022-11-02 12:15:15 +00:00
|
|
|
# Upgrading process
|
2022-10-21 13:38:07 +00:00
|
|
|
|
|
|
|
## adhoc (on kubernetes cluster)
|
|
|
|
|
2023-03-28 07:46:15 +00:00
|
|
|
Ssh into your kubernetes cluster running the forgejo instance.
|
2022-10-21 13:38:07 +00:00
|
|
|
|
|
|
|
``` bash
|
2023-03-28 07:46:15 +00:00
|
|
|
kubectl edit configmap forgejo-env
|
2022-11-02 12:15:15 +00:00
|
|
|
# make sure INSTALL_LOCK under security is set to true to disable the installation screen
|
|
|
|
# save and exit
|
2023-03-28 07:46:15 +00:00
|
|
|
kubectl edit deployments forgejo
|
2023-04-20 07:43:54 +00:00
|
|
|
# search for your current forgejo version, e.g. 1.19
|
2022-10-21 13:38:07 +00:00
|
|
|
# replace with new version
|
|
|
|
# save and exit
|
2023-03-28 07:46:15 +00:00
|
|
|
kubectl scale deployment forgejo --replicas=0
|
|
|
|
kubectl scale deployment forgejo --replicas=1
|
2022-10-21 13:38:07 +00:00
|
|
|
```
|
|
|
|
|
2022-11-03 13:10:20 +00:00
|
|
|
Logging into the admin account should now show the new version.
|
2022-10-21 13:38:07 +00:00
|
|
|
|
2023-03-28 07:46:15 +00:00
|
|
|
You may want to update your c4k-forgejo resources to reflect the changes made on the cluster.
|