Terraform ProxmoxVE Kubernetes
This project is inspired by vultr/condor but design for ProxmoxVE.
Requirements
- Configure ProxmoxVE Provider before use this module.
- Ensure
Pool.Allocate
andSys.Modify
is added to Token permission which document not noted. - Prepare a cloud-init template with Qemu Guest Agent
Usage
The exampe config use this module
module "pkube" {
source = "elct9620/kubernetes/proxmox"
version = "0.1.0"
cluster_name = "example"
ipconfig = "ip=dhcp"
# vlan = 1
ssh_keys = <<EOF
[YOUR_KEYS]
EOF
controllers = { "primary" = 1 }
controller_hardware = {
"primary" = {
vmid = 5000, # VMID start with 5000
cores = 1,
memory = 2048,
disk_size = "8G",
storage = "local-lvm",
}
}
workers = { "primary" = 3 }
worker_hardware = {
"pve-primary" = {
vmid = 5100, # VMID start with 5100
cores = 1,
memory = 2048,
disk_size = "32G",
storage = "local-lvm",
}
}
helm_repositories = [
# ...
]
helm_charts = [
# ...
]
}