Commit Graph

17 Commits

Author SHA1 Message Date
e22217f2ed Adjust formatting according to tf standards 2025-11-28 00:28:25 +01:00
b33da3eca0 Simplify server and agent definition for kubernetes
The definition was split into multiple settings, that made it
unnecessary complicated to setup the definition for my kubernetes
cluster. This new approach allows for granular definitions of servers
and agents and is also simpler to use for me.
2025-11-28 00:28:25 +01:00
58b0c0fcc7 Move declaration of primary IPs into kubernetes-module 2025-11-28 00:28:25 +01:00
cb97668b63 Define IPs which have access to the kubernetes-API and SSH as variables
I liked the idea to have these IPs dynamically detected at runtime,
though some research showed that my current provider only renews these
every 180 days, nowadays. So, no need for such a hyper-dynamic solution.
Instead I use a variable now, which brings some other benefits, like
adding arbitrary IPs as well. This might become handy in cases of CI/CD.
2025-11-28 00:28:25 +01:00
6ca0a07522 Configure dns-zones via variables, instead of as static values
This change makes it a bit easier for me to manage specific domains.
Note, that in the long-run these settings should _not_ belong to this
repository. Instead I'm going to maintain these in projects where the
domain is more meaningful.
2025-11-28 00:28:25 +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
d96523a071 Move infra-setup and k3s-setup into dedicated directories
This changes makes it easier to differentiate and understand the
different parts of the kubernetes setup. On one hand we have the bare
infrastructure (servers, network, etc), on the other hand we have the
software (k3s in this case).

In the future we'll have a few more parts, like the minimal
configuration of the kubernetes cluster, e.g. with a cert-manager. This
is easier to manage with helm or terraform than with ansible. Therefore
it makes even more sense to split the responsibilities into dedicated
directories.
2025-09-15 14:47:19 +02:00
dfcdc9797a Setup k3s with the help of ansible after the infra-provisioning
This change is huge! It allows me to manage the k3s installation on the
hetzner-cloud I setup via terraform.
2025-09-15 04:20:22 +02:00
d083b9d446 Make every important setting of the k8s-cluster configurable
This change makes all the settings configurable. The only part which
still lacks some flexibility is the location, though I really don't need
to run a k8s-cluster over multiple datacenters and regions! - At least
right now ;-)
2025-09-15 03:43:05 +02:00
998426c330 Add variable to decide wether the ssh-port of the k8s-server is exposed 2025-09-14 16:26:11 +02:00
8797fad6d7 Update costs-table of domains to read the prices easier 2025-04-23 23:17:21 +02:00
a1e9f43a31 reorganize firewall rules to make it more obvious what has changed 2025-03-15 20:49:40 +01:00
1eb2ce341a Define a basic but working complete k3s-kubernetes setup 2025-03-10 01:44:56 +01:00
2d93766c09 Add ssh-keys to hetzner-cloud 2025-03-08 21:37:15 +01:00
f37c92c439 Reduce number of terraform-file to the "normal" set of files and simplify dns-definition 2025-03-08 21:36:43 +01:00
817f75bb49 Refactor DNS-config to make it easier to maintain 2025-03-04 23:15:42 +01:00
3a09b0f44e Define all my DNS-records in the hetzner-cloud 2025-01-12 15:15:10 +01:00