Skip to content

Commit

Permalink
Added node pool metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
amanpruthi committed Jun 11, 2024
1 parent 0842766 commit f58bd63
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/app_gke/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ resource "google_container_node_pool" "default" {
"https://www.googleapis.com/auth/trace.append",
"https://www.googleapis.com/auth/sqlservice.admin",
]

dynamic "workload_metadata_config" {
for_each = var.create_workload_identity == true ? [1] : []
content {
mode = "GKE_METADATA"
}
}
shielded_instance_config {
enable_secure_boot = true
}
Expand Down

0 comments on commit f58bd63

Please sign in to comment.