Provision forgejo on k8s with c4k
  • Clojure 86.1%
  • Python 12.9%
  • Dockerfile 1%
Find a file
2026-07-03 16:53:50 +02:00
doc Update docs 2025-07-25 16:52:19 +02:00
infrastructure bump version to: 9.0.2-SNAPSHOT 2026-07-03 16:19:06 +02:00
src upgrade to newest k3s 2026-07-03 16:13:15 +02:00
.gitignore Remove more js and cljs refs 2025-07-23 14:58:11 +02:00
.gitlab-ci.yml ci: update ci 2026-02-05 09:01:59 +01:00
build.py fix package-json 2025-07-24 16:32:09 +02:00
LICENSE initial 2022-06-07 17:37:21 +02:00
project.clj bump version to: 9.0.2-SNAPSHOT 2026-07-03 16:19:06 +02:00
README.md update doc 2026-07-03 16:53:50 +02:00

convention 4 kubernetes: c4k-forgejo

Clojars Project pipeline status

DeltaChat chat over e-mail | M meissa@social.meissa-gmbh.de | Blog | Website

Purpose

c4k-forgejo provides a k8s deployment file for forgejo containing:

  • forgejo
  • test federated forgejo
  • ingress having a letsencrypt managed certificate
  • postgres database
  • encrypted backup on S3 & restore
  • monitoring on grafana-cloud

c4k-forgejo is an example how to create efficient k8s one-shot deployments with https://repo.prod.meissa.de/meissa/c4k-common.

Forgejo setup

After having deployed the yaml-file generated by the c4k-forgejo module you need to complete the setup for forgejo:

  • Open the URL of your forgejo-server, and you will be shown a configuration page.
  • Adjust the settings according to your needs
  • Add the administrator's data (name, password and email) and submit the page.
  • The required database will be created and the forgejo setup will be completed.
  • The SSH-URL for a repo has the format: "ssh://git@domain:2222/[username]/[repo].git" Example: "git clone ssh://git@repo.test.meissa.de:2222/myuser/c4k-forgejo.git"

Add Impressum

In order to customize the UI e.g. for adding an Impressum, see the Forgejo Docs. The individually needed files have to be added by hand into the directory /data/gitea/templates/custom/ in the forgejo Pod. Since a PV is mounted under /data, these ui customizations are persisted.

Development & mirrors

Development happens at: https://repo.prod.meissa.de/meissa/c4k-forgejo

Mirrors are:

For more details about our repository model see: https://repo.prod.meissa.de/meissa/federate-your-repos

License

Copyright © 2023-2025 meissa GmbH Licensed under the Apache License, Version 2.0 (the "License") Pls. find licenses of our subcomponents here