2022-11-02 12:15:15 +00:00
|
|
|
# Upgrading process
|
2022-10-21 13:38:07 +00:00
|
|
|
|
|
|
|
## adhoc (on kubernetes cluster)
|
|
|
|
|
|
|
|
Make sure you've got your gitea admin credentials.
|
|
|
|
|
|
|
|
``` bash
|
2022-11-02 12:15:15 +00:00
|
|
|
kubectl edit configmap gitea-env
|
|
|
|
# make sure INSTALL_LOCK under security is set to true to disable the installation screen
|
|
|
|
# save and exit
|
|
|
|
kubectl edit deployments gitea
|
2022-10-21 13:38:07 +00:00
|
|
|
# search for your current gitea version, e.g. 1.17.0
|
|
|
|
# replace with new version
|
|
|
|
# save and exit
|
2022-11-02 12:15:15 +00:00
|
|
|
kubectl scale deployment gitea --replicas=0
|
|
|
|
kubectl scale deployment gitea --replicas=1
|
2022-10-21 13:38:07 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
You now should be logged into the admin account with all repos visible.
|
|
|
|
|
2022-11-02 12:15:15 +00:00
|
|
|
You may want to update your c4k-gitea resources to reflect the changes made on the cluster.
|