Skip to content

Instantly share code, notes, and snippets.

@anjana-j
Created December 4, 2023 06:11
Show Gist options
  • Save anjana-j/ff9d1f1d8d40f492be9546469dc0782e to your computer and use it in GitHub Desktop.
Save anjana-j/ff9d1f1d8d40f492be9546469dc0782e to your computer and use it in GitHub Desktop.
GKE Auto Pilot
data "google_container_engine_versions" "gke_version" {
location = var.region #australia-southeast1
version_prefix = var.gke_version_prefix #1.27.
}
resource "google_container_cluster" "default" {
name = var.gke_cluster_name
description = var.gke_cluster_desc
project = var.project_id
location = var.region
enable_autopilot = true
deletion_protection=false
initial_node_count = 1
ip_allocation_policy {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment