Created
December 4, 2023 06:11
-
-
Save anjana-j/ff9d1f1d8d40f492be9546469dc0782e to your computer and use it in GitHub Desktop.
GKE Auto Pilot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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