k8s cluster 2+1 CX23

This commit is contained in:
Sergei Poljanski 2026-03-20 20:41:44 +03:00
commit 468fd67b92
Signed by: asxpi
GPG key ID: 4F8851660FA4121B
7 changed files with 110 additions and 0 deletions

32
main.tf Normal file
View 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
}
]
}