resource ibm_container_cluster "single_zone_cas_cluster" {
  name            = "cas"
  datacenter      = "dal10"
  machine_type    = "b3c.4x16"
  hardware        = "shared"

  kube_version = "1.30.4"
  default_pool_size = var.worker_count
    
  public_service_endpoint  = "true"
  private_service_endpoint = "true"

  resource_group_id = var.resource_group

  labels = {
    "cluster" = "cas"
  }
}

resource "ibm_container_worker_pool" "testacc_workerpool" {
  worker_pool_name = "terraform_test_pool"
  machine_type     = "u2c.2x4"
  cluster          = "my_cluster"
  size_per_zone    = 1
  hardware         = "shared"
  disk_encryption  = "true"

  labels = {
    "cluster" = "cas"
  }

  timeouts {
    update = "180m"
  }
}
