Files
base-infra/k3s
Felix Nehrke 75a485fbff Reset SSH-port of host-machines to 1022
I want to use port 22 for my git-server, therefore I have to make this
port free for use of kubernetes. This change allows this, so when I want
to connect to the host-machines I'll use port 1022.
2025-09-17 14:21:03 +02:00
..

k3s

This project is responsible for setting up a k3s installation.

Setup

The setup requires a inventory.ini this should be provided by a previous step.

ansible-galaxy install -r requirements.yml (1)
ansible-playbook k3s.orchestration.site -i inventory.ini (2)
ansible-playbook download-kube-config.yml -i inventory.ini (3)
ansible-playbook k3s.orchestration.upgrade -i inventory.ini (4)
1 Install required ansible collections to create a k3s-cluster (can be omitted in subsequent runs)
2 Install k3s
3 Download the kube-config to .kube/config
4 Update k3s when necessary
Step 3 will override any existing kube config this might destroy any existing settings!