This repository contains IaC for provisioning Talos Kubernetes cluster on VMware vSphere.
-
Install all required providers
terraform init
-
Create a new terraform.tfvars file configuring it as required
-
Create the infrastructure
terraform apply
-
Extract talosconfig file using terraform
terraform output -raw talosconfig > /tmp/talosconfig
-
Export talosconfig file and extract kubeconfig
export TALOSCONFIG=/tmp/talosconfig talosctl --nodes 10.0.140.21 kubeconfig /tmp/kubeconfig
-
Export kubeconfig file and use the cluster
export KUBECONFIG=/tmp/kubeconfig kubectl get nodes