This is my Terraform configuration for creating a K3s cluster with 3 server nodes. The configuration is split into two files:
provider.tf
: Provider configuration for Proxmox VEkube-servers.tf
: Configuration for creating 3 Kubernetes server nodes using Proxmox VE
Remember to add file variables.pkrvars.hcl
into the root of this repo.
The file should contain:
proxmox_api_url = "your-proxmox-host"
proxmox_api_token_id = "your-token-id"
proxmox_api_token_secret = "your-secret"
- Install Terraform on your local machine.
- Clone this repository to your local machine.
- Update the
variables.pkrvars.hcl
file with your desired settings. - Run
terraform init
to initialize the configuration. - Run
terraform apply -auto-approve
to provision the server nodes.