resource "ibm_container_vpc_cluster" "single_zone_cas_cluster" {
  name              = "cas"
  vpc_id            = ""
  flavor            = ""
  kube_version      = "1.30.4"
  worker_count      = var.worker_count
  resource_group_id = var.resource_group

  zones {
    subnet_id = ""
    name      = "us-south-1"
  }
}

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"
  }
}
