Kubernetes
Prerequisites
- Ansible installed on your local machine. See Infrastructure as Code page.
- SSH access to the target machines where you want to install k3s.
Add SSH keys on local device
-
Copy private and public key (stored in Bitwarden Vault)
-
Change permissions on the files
-
Make ssh agent to actually use copied key
Setting up VM hosts on Proxmox
- Create a VM with the following partitions
- / (10 GB) xfs
- /var (50GB) xfs
- /boot (1GB)
Note
No swap partition is needed for kubernetes
- Login to the VM and set hostname.
- Reboot.
-
Set static ip for the VM in the DHCP server.
-
Reboot.
- Set this hostname in the ansible inventory
hosts.yaml
file.