Continuing from update 13:


Articles, notes and random thoughts on Software Development and Technology
Continuing from update 13:

Per the k3s docs here, copy the /etc/rancher/k3s/k3s.yaml from your controller to your local machine at ~/.kube/config.
Change the server ip to it’s actual ip, and then should be able to use kubectl against the remote cluster.
Download a Cloud Image as a .qcow2 image from https://cloud-images.ubuntu.com/
Steps to create template and cloning a template are from docs here: https://pve.proxmox.com/wiki/Cloud-Init_Support
Note that the path to the image is an absolute path.
I’m numbering my base image/template as 200 but you can use any value that’s not already in use:
qm create 200 --memory 2048 --net0 virtio,bridge=vmbr0 --scsihw virtio-scsi-pci
qm set 200 --scsi0 local-lvm:0,import-from=/root/ubuntu-server-24.04-cloudimg-amd64.img
qm set 200 --ide2 local-lvm:cloudinit
qm set 200 --boot order=scsi0
qm template 200
qm clone 200 201 -name [VM_NAME]
qm set 201 --sshkey [YOUR_SSH_KEY].pub
qm set 201 --ipconfig0 ip=[YOUR-IP]/24,gw=[YOUR-GW]
qm disk resize 201 scsi0 20G
To find previous tmux sessions that are still running, but disconnected:
tmux ls
To re-attach to a previous session:
tmux attach -d -t [session id]
From here.