Commit Graph

8 Commits

Author SHA1 Message Date
1f69c1578c Add longhorn distributed storage to the k3s-cluster
This change adds longhorn, an addition to Kubernetes that adds the
ability to use distributed storage over all nodes to the cluster.

Note, that I tried that in December already but due to very high load on
the machines I rolled _everything_ back. Though, it turned out that the
high load was not because of longhorn, but instead because of bad
configuration of the server, as described in the see-also commit.

Reference: https://longhorn.io/
Reference: https://longhorn.io/docs/1.10.1/deploy/install/install-with-helm/
See-also: 4b8a3d12c4 Use etcd instead of sqlite for k3s-server
2026-01-23 00:45:00 +01:00
4b8a3d12c4 Use etcd instead of sqlite for k3s-server
Oh damn, that was so annoying. My cluster ran on near 100% load all the
time! As it turns out that's a known issue on k3s clusters.

The solution is to add the `--cluster-init` flag to the server which let
the server use etcd instead of sqlite. And voila the cpu-usage drops to
a resonably low level in the single digit percent range.

Reference: https://github.com/k3s-io/k3s/issues/10396
Reference: https://docs.k3s.io/datastore/ha-embedded#existing-single-node-clusters
2026-01-22 22:47:58 +01:00
4ac786c5c5 Update gitea chart due to discontinued bitnami db-images
Bitnami has discontinued a lot of their container images. Alongside
these were also their images for a high availability setup of
postgresql. This change fixes that by referencing the legacy bitnami
images until a "new" approach is found.
2025-12-14 20:29:32 +01:00
20b0ac86f5 Add snappass to the cluster
This change is surprisingly tricky and needed some temporary
workarounds. First, there is no "official" snappass helm chart but I
found one, which does the job and looked good enough. The other problem
is the missing "official" image of snappass. The helm-chart used a
customized image which I didn't want to use, therefore I had to rebuild
a brand new image quickly. This new image is unfortunately not bound to
any repository or pipeline yet, which means that this change needs some
trust for the moment until I've set up the needed repo and CI
structures.

Reference: https://github.com/lmacka/helm-snappass/tree/main
Reference: https://github.com/pinterest/snappass
2025-11-28 22:12:47 +01:00
91f81b8726 Add concourse as the foundational CI tool to k8s-cluster
This change allows to add a concourse-server to the kubernetes cluster.
2025-11-28 00:28:25 +01:00
4f9ea90f8e Add gitea as git-server to k8s-cluster
By applying this change the kubernetes cluster gets a gitea-server
setup. Note, that I use a custom-image which I have to automate in
future. The customization is necessary since I use asciidoc very often
and the default-gitea doesn't render these files, so it becomes a bit
cumbersome to read them on the web.
2025-11-28 00:28:25 +01:00
f19a1f61c9 Use port 1022 for all cluster nodes as SSH-port and fix some config-errors
I'm oversaw completely, that I have to change the SSH-port for all nodes
in the cluster otherwise I cannot provide a meaningful load-balancer for
the git-ssh port in it.

Additionally this allowed me to fix some config errors which I simply
oversaw.
2025-11-28 00:28:22 +01:00
7297892e18 Merge infra and k3 into one directory again
Since I don't have multiple terraform steps anymore it simply doesn't
make sense to me anymore to split all tasks into separate folders.
Instead I try to be as clear as possible in the README to make it easy
to follow the structure in the future without too much headache.
2025-11-28 00:24:18 +01:00