Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 860 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 860 Bytes

Overview

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.

Test

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