Skip to content

Provision Production and Staging Environments

Define two clusters in a single Terraform configuration so production and staging are managed together. Each cluster gets its own resource allocation.

resource "kupe_cluster" "production" {
name = "production"
display_name = "Production"
type = "shared"
version = "1.31"
resources = {
cpu = "4"
memory = "16Gi"
storage = "100Gi"
}
}
resource "kupe_cluster" "staging" {
name = "staging"
display_name = "Staging"
type = "shared"
version = "1.31"
resources = {
cpu = "2"
memory = "8Gi"
storage = "50Gi"
}
}

name, display_name, and type are immutable — changing any of them forces replacement. version and resources can be updated in place — see Scale Cluster Resources and Upgrade Kubernetes Version.