forked from khanh-ph/proxmox-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 1
/
example.tfvars
74 lines (67 loc) · 2.6 KB
/
example.tfvars
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Environment
########################################################################
env_name = "demo"
location = null
cluster_number = "01"
cluster_domain = "local"
# If using this project version >= 4.0.0 with a previously provisioned cluster,
# check this setting: https://github.com/khanh-ph/proxmox-kubernetes/releases/tag/4.0.0
use_legacy_naming_convention = false
# Proxmox VE
########################################################################
# Proxmox VE API details and VM hosting configuration
# API token guide: https://registry.terraform.io/providers/Telmate/proxmox/2.9.14/docs
pm_api_url = "https://your-proxmox-url/api"
pm_api_token_id = "your-api-token-id"
pm_api_token_secret = "your-api-token-secret"
pm_tls_insecure = false
pm_host = "your-proxmox-host"
pm_parallel = 2
pm_timeout = 600
# Common infrastructure configurations
########################################################################
# Kubernetes internal network
internal_net_name = "vmbr1"
# Internal network CIDR
internal_net_subnet_cidr = "10.0.1.0/24"
# Base64 encoded keys for Kubernetes admin authentication
ssh_public_keys = "put-base64-encoded-public-keys-here"
# Caution: In production, follow https://developer.hashicorp.com/terraform/tutorials/configuration-language/sensitive-variables
# to protect the sensitive variable `ssh_private_key`
ssh_private_key = "put-base64-encoded-private-key-here"
# Default disk storage for the VMs. Uncomment the following line if needed
# vm_os_disk_storage = "local-lvm"
# Bastion host details. This is required for the Terraform client to
# connect to the Kubespray VM that will be placed into the internet network
bastion_ssh_ip = "192.168.1.131"
bastion_ssh_user = "ubuntu"
bastion_ssh_port = 22
# VM specifications
########################################################################
# Maximum cores that your Proxmox VE server can give to a VM
vm_max_vcpus = 2
# Control plane VM specifications
vm_k8s_control_plane = {
node_count = 1
vcpus = 2
memory = 2048
disk_size = 20
}
# Worker nodes VM specifications
vm_k8s_worker = {
node_count = 3
vcpus = 2
memory = 3072
disk_size = 20
}
# Kubernetes settings
########################################################################
kube_version = "v1.29.5"
kube_network_plugin = "calico"
enable_nodelocaldns = false
podsecuritypolicy_enabled = false
persistent_volumes_enabled = false
helm_enabled = false
ingress_nginx_enabled = false
argocd_enabled = false
argocd_version = "v2.11.4"