Installing GitEA
- hosting
- server
- servers
- infrastructure
- kubernetes
- gitea
Summary¶
Installing Gitea was pretty straight forward. Except for one thing. After I setup the storage provider, the load balancer, the ingress, it all seemed working. I was able to load the gitea page, but I couldn't actually login. I would get a 500 error without any real details about what caused it.
The statefulset for the redis cluster wasn't initialized for whatever reason. all the pods would enter the running state but they'd never hit the ready state.
It turns out the redis cluster wasn't initialized. So I simply had to find the cluster ip's of each of the redis-cluster pods (Super simple with Rancher), once I had all three of them (IP_A , IP_B , IP_C) I was able to use rancher to open a shell (or could have used kubectl exec to open a shell) to one of the pods in order to run the following command:
redis-cli --cluster create --cluster-replicas 0 IP_A:6379 IP_B:6379 IP_C:6379
After I ran this command everything started to work, and I was able to login to Gitea.