Reviewed-on: https://code.forgejo.org/infrastructure/documentation/pulls/62 Reviewed-by: Michael Kriese <michael.kriese@gmx.de> |
||
---|---|---|
.gitignore | ||
LICENSE | ||
lxc.md | ||
README.md | ||
runner-lxc.md |
The resources used by the infrastructure are in the https://code.forgejo.org/infrastructure/ organization. There is a dedicated chatroom. A mirror of this repository is available at https://git.pub.solar/forgejo/infrastructure-documentation.
Table of content
- K8S cluster files and documentation
- Setting up a new LXC/DRBD Host
- Installing a Forgejo runner
forgejo01 @ octopuce
Hosting Forgejo runners.
KVM virtual machine 16 threads, 64GB RAM, 1TB DRBD volume backed by SSD, 1 public IPv4 + IPv6.
ssh debian@forgejo01.octopuce.fr
Warning
at random times LXC containers are not routed.
systemctl restart lxc-net
fixes it.
aburayama @ codeberg
Dedicated to hosting Forgejo runners.
See the codeberg documentation for SSH access.
Host *.lxc.aburayama.local
User earl
ProxyJump aburayama.m.codeberg.org
Host *.m.codeberg.org
User jump
Port 19198
ForwardAgent yes
Hetzner
Help cover the costs
It is possible to help cover the costs of the hardware running at Hetzner by adding credit with a bank transfert. The client identifier (Customer ID: K06620...) must be added as a reason for the transfert so that Hetzner knows which account must be credited with the funds.
Please reach out to the devops team to get the information.
Estimated carbon footprint
Power consumption declared by Hetzner December 2024:
- ex44 - idle 25W - max 118W
- ex101 - idle 32W - max 116W
The CO₂ emissions factor in the German electricity mix was 380 grams per kilowatt hour, based on initial estimates for 2023.
- ex101 - idle 75% - max 25%
- 32W * 24h * 365d * 0.75 = 210kWh
- 116W * 24h * 365d * 0.25 = 254kWh
- Total = 464kWh => 139Kg CO2
- ex44 - idle 90% - max 10%
- 25W * 24h * 365d * 0.90 = 197kWh
- 118W * 24h * 365 * 0.10 = 103kWh
- Total = 300kWh => 114Kg CO2
Grand total for 1 ex100 + 3 ex44 => 1 * 139Kg + 3 * 114Kg => 481Kg rounded to 500Kg CO2 per year.
hetzner01
EX101 Hetzner hardware dedicated to LXC containers with Forgejo runners.
hetzner{03,05,06}
https://hetzner03.forgejo.org, https://hetzner05.forgejo.org & https://hetzner06.forgejo.org run on EX44 Hetzner hardware.
They are dedicated to the long running K8S cluster files and documentation.
Uberspace
The website https://forgejo.org is hosted at https://uberspace.de/. The https://codeberg.org/forgejo/website/ CI has credentials to push HTML pages there.