Description
Create production GKE clusters with enable_kubernetes_alpha = false. Alpha clusters are for testing experimental features. They cannot be upgraded, receive no security updates and have no GKE SLA.
Potential impact
Alpha clusters are deleted automatically after 30 days. GKE does not save their data for you, so move any data or test results you need before the cluster expires.
Remediation
If production workloads already run on an Alpha cluster, create a supported non-alpha cluster. Migrate the data and workloads, verify the application on the new cluster, then switch traffic.
Examples
The examples choose the type of a new cluster. Changing the flag to false cannot convert an existing Alpha cluster. To create a separate Alpha test cluster, also disable node auto-upgrades and auto-repair.
Before
resource "google_container_cluster" "example" {
name = "example-cluster"
location = "asia-northeast3"
enable_kubernetes_alpha = true
}
After
resource "google_container_cluster" "example" {
name = "example-cluster"
location = "asia-northeast3"
enable_kubernetes_alpha = false
}