Deploy master and worker nodes for k3s on vSphere using a Packer image already built. You can find a reference to the Packer GitLab repo here.
This repo uses a Terraform module to deploy VMs in vSphere. The module uses Cloud-Init for customization.
The pipeline will create a k3s cluster and store the kube config in Vault. Run the commands below to test the new cluster.
export VAULT_TOKEN=<your_token>
export VAULT_ADDR=http://vault.home
vault kv get -field k3s_config_base64 external/k3sdemo | base64 --decode > mytestconfig
export KUBECONFIG=mytestconfig
kubectl get nodes -owide
kubectl get all --namespace kube-system