Skip to main content

Forgejo

Forgejo is a community-driven, lightweight code hosting solution that is a fork of Gitea. It provides a simple and efficient platform for managing Git repositories, making it easy for developers to collaborate on projects.

https://code.forgejo.org/forgejo-helm/forgejo-helm

Configuration

Create namespace for Forgejo:

kubectl apply -f k8s/forgejo/forgejo-namespace.yaml

Create Object Bucket Claim for Forgejo:

kubectl apply -f k8s/forgejo/forgejo-bucket-claim.yaml
info

forgejo role and database should have been created with the cnpg cluster. See Roles and Secrets and Databases.

Add forgejo-db-credentials external secret in forgejo namespace:

kubectl apply -f k8s/forgejo/forgejo-db-credentials-external-secret.yaml

Install Forgejo

Install Forgejo with Helm:

envsubst < k8s/forgejo/values.yaml | \
helm upgrade --install forgejo oci://code.forgejo.org/forgejo-helm/forgejo \
--version 15.0.3 \
--namespace forgejo --create-namespace \
--values -

Sign in to Forgejo at https://forgejo.<CLUSTER_DOMAIN> with the default admin account gitea_admin.

Password is available in the forgejo-admin secret in the forgejo namespace:

kubectl get secret forgejo-admin -n forgejo -o jsonpath="{.data.password}" | base64 --decode