Skip to content

caleb-devops/terraform-proxmox-k3s

Repository files navigation

Requirements

Name Version
terraform ~> 1.0
proxmox ~> 2.6.5

Providers

Name Version
local n/a

Modules

Name Source Version
k3s xunleii/k3s/module ~> 3.0
k3s_agent github.com/caleb-devops/terraform-proxmox-ci-vm
k3s_server github.com/caleb-devops/terraform-proxmox-ci-vm

Resources

Name
local_file

Inputs

Name Description Type Default Required
agent_cores The number of CPU cores per CPU socket to allocate to the VM number 1 no
agent_count The number of K3S agent nodes to create number n/a yes
agent_disks VM disk config list(map(string))
[
{}
]
no
agent_memory The amount of memory to allocate to the VM in Megabytes number 512 no
agent_networks VM network adapter config list(map(string))
[
{}
]
no
agent_sockets The number of CPU sockets to allocate to the VM number 1 no
cipassword Override the default cloud-init user's password string null no
ciuser Override the default cloud-init user for provisioning string n/a yes
clone The base VM from which to clone to create the new VM string n/a yes
connection Provisioner connection settings map(string)
{
"agent": true,
"type": "ssh"
}
no
k3s_version Specify the k3s version. You can choose from the following release channels or pin the version directly string "latest" no
kubeconfig_file_permission File permission of the Kubectl config file containing cluster configuration saved to kubeconfig_output_path. string "0600" no
kubeconfig_output_path Where to save the Kubectl config file (if write_kubeconfig = true). Assumed to be a directory if the value ends with a forward slash /. string "./" no
name_prefix Creates a name beginning with the specified prefix string n/a yes
nameserver Sets default DNS server for guest string null no
numa Whether to enable Non-Uniform Memory Access in the guest bool false no
pool The destination resource pool for the new VM string null no
searchdomain Sets default DNS search domain suffix string null no
server_cores The number of CPU cores per CPU socket to allocate to the VM number 1 no
server_count The number of K3S server nodes to create number n/a yes
server_disks VM disk config list(map(string))
[
{}
]
no
server_memory The amount of memory to allocate to the VM in Megabytes number 512 no
server_networks VM network adapter config list(map(string))
[
{}
]
no
server_sockets The number of CPU sockets to allocate to the VM number 1 no
sshkeys Newline delimited list of SSH public keys to add to authorized keys file for the cloud-init user string n/a yes
target_node The name of the Proxmox Node on which to place the VM string "pve" no
write_kubeconfig Whether to write a Kubectl config file containing the cluster configuration. Saved to kubeconfig_output_path. bool true no

Outputs

Name Description
kube_config kubectl config file contents
kubernetes_ready Dependency endpoint to synchronize k3s installation and provisioning.
summary Current state of k3s (version & nodes)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published