added ske

This commit is contained in:
Markus Brunsch 2025-05-27 17:51:04 +02:00
parent 20d3bc7aeb
commit 7a24820828
2 changed files with 43 additions and 12 deletions

31
08-ske.tf Normal file
View file

@ -0,0 +1,31 @@
resource "stackit_ske_cluster" "demo-cluster" {
project_id = module.project.project_info["project4"].project_id
name = "demo-cluster"
node_pools = [
{
name = "np"
machine_type = "g1.4"
minimum = "2"
maximum = "3"
volume_size = "64"
volume_type = "storage_premium_perf4"
availability_zones = ["eu01-3", "eu01-1"]
}
]
maintenance = {
enable_kubernetes_version_updates = true
enable_machine_image_version_updates = true
start = "01:00:00Z"
end = "02:00:00Z"
}
extensions = {
acl = {
enabled = true
allowed_cidrs = ["0.0.0.0/0"]
}
}
}
output "ske-egress-ip" {
value = stackit_ske_cluster.demo-cluster.egress_address_ranges
}

View file

@ -22,8 +22,8 @@ variable "projects" {
name = "ske" name = "ske"
owner_email = "markus.brunsch@stackit.cloud" owner_email = "markus.brunsch@stackit.cloud"
} }
}
} }
resource "stackit_resourcemanager_project" "projects" { resource "stackit_resourcemanager_project" "projects" {
for_each = var.projects for_each = var.projects
parent_container_id = var.organization_id parent_container_id = var.organization_id