- setup packer
cd packer
packer init config.pkr.hcl
-
build cloud-config.yml Set up a cloud-config so that you can use your own ssh keys. @TODO
-
build the VM
packer build k3s.json
cd ../vagrant
vagrant add {BOX FILE FROM ABOVE}
modify Vagrantfile to use the same name.
vagrant up
The provisioner should start up k3s, and spit out the kubeconfig.
Save the kubeconfig and export $KUBECONFIG={That file} now you can use k3s locally.