Expose allow_net_admin feature in gke-cluster-autopilot

This commit is contained in:
Eunan Hardy
2023-08-07 12:44:59 +01:00
parent ca2763754a
commit 10e3184451
2 changed files with 7 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ resource "google_container_cluster" "cluster" {
initial_node_count = 1
enable_autopilot = true
allow_net_admin = var.allow_net_admin
addons_config {
http_load_balancing {

View File

@@ -211,3 +211,9 @@ variable "vpc_config" {
})
nullable = false
}
variable "allow_net_admin" {
description = "Enable NET_ADMIN feature on autopilot cluster."
type = bool
default = false
}