c4k-forgejo/doc/Upgrading.md

21 lines
655 B
Markdown
Raw Permalink Normal View History

# Upgrading process
## adhoc (on kubernetes cluster)
2023-03-28 07:46:15 +00:00
Ssh into your kubernetes cluster running the forgejo instance.
``` bash
2023-03-28 07:46:15 +00:00
kubectl edit configmap forgejo-env
# 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
# 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-11-03 13:10:20 +00:00
Logging into the admin account should now show the new version.
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.