23 lines
643 B
HCL
23 lines
643 B
HCL
// SKE Cluster
|
|
resource "stackit_ske_cluster" "this" {
|
|
project_id = var.stackit_project_id
|
|
name = var.ske_cluster_name
|
|
maintenance = var.ske_maintenance
|
|
node_pools = var.ske_node_pools
|
|
#]
|
|
#extensions = {
|
|
# argus = {
|
|
# enabled = true
|
|
# argus_instance_id = var.observability-instance-id
|
|
# }
|
|
#}
|
|
}
|
|
|
|
// Kubeconfig
|
|
resource "stackit_ske_kubeconfig" "this" {
|
|
depends_on = [stackit_ske_cluster.this]
|
|
project_id = var.stackit_project_id
|
|
cluster_name = stackit_ske_cluster.this.name
|
|
refresh = true
|
|
expiration = "15552000" # 6 months
|
|
}
|