Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: switch from terraform to hetzner-k3s
Browse files Browse the repository at this point in the history
mrsimonemms committed Dec 16, 2024

Verified

This commit was signed with the committer’s verified signature.
mrsimonemms Simon Emms
1 parent 19f34f8 commit daefc5c
Showing 3 changed files with 48 additions and 0 deletions.
43 changes: 43 additions & 0 deletions clusters/common.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
kubeconfig_path: "~/.kube/config"
k3s_version: v1.31.3+k3s1

networking:
ssh:
port: 2244
use_agent: false
public_key_path: "~/.ssh/homelab.pub"
private_key_path: "~/.ssh/homelab"
allowed_networks:
ssh:
- 0.0.0.0/0
api:
- 0.0.0.0/0
public_network:
ipv4: true
ipv6: true
private_network:
enabled: true
subnet: 10.0.0.0/16
cni:
enabled: true
encryption: true
mode: cilium

datastore:
mode: etcd

schedule_workloads_on_masters: true

image: ubuntu-24.04

masters_pool:
instance_type: cx32
instance_count: 3
location: nbg1

kube_cloud_controller_manager_args:
networking:
enabled: true
env:
- name: HCLOUD_LOAD_BALANCERS_ENABLED
value: false
4 changes: 4 additions & 0 deletions clusters/dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cluster_name: dev
networking:
private_network:
subnet: 10.2.0.0/16
1 change: 1 addition & 0 deletions clusters/prod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cluster_name: prod

0 comments on commit daefc5c

Please sign in to comment.