k8s cluster 2+1 CX23
This commit is contained in:
parent
8a425e4318
commit
468fd67b92
7 changed files with 110 additions and 0 deletions
32
main.tf
Normal file
32
main.tf
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
module "kubernetes" {
|
||||
source = "hcloud-k8s/kubernetes/hcloud"
|
||||
version = "3.27.2"
|
||||
|
||||
cluster_name = var.cluster_name
|
||||
hcloud_token = var.hcloud_token
|
||||
|
||||
cluster_kubeconfig_path = "kubeconfig"
|
||||
cluster_talosconfig_path = "talosconfig"
|
||||
|
||||
firewall_use_current_ipv4 = true
|
||||
|
||||
cert_manager_enabled = true
|
||||
|
||||
control_plane_nodepools = [
|
||||
{
|
||||
name = "control"
|
||||
type = "cx23" # 2 vCPU, 4 GB RAM
|
||||
location = "hel1"
|
||||
count = 1
|
||||
}
|
||||
]
|
||||
|
||||
worker_nodepools = [
|
||||
{
|
||||
name = "worker"
|
||||
type = "cx23" # 2 vCPU, 4 GB RAM
|
||||
location = "hel1"
|
||||
count = 2
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue