diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c11735d..7f8cdef 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -41,6 +41,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - name: Setup terraform + uses: hashicorp/setup-terraform@v3 - name: Setup Go uses: actions/setup-go@v4 with: diff --git a/main.tf b/main.tf index e2aff94..a5dac12 100644 --- a/main.tf +++ b/main.tf @@ -167,6 +167,9 @@ resource "google_container_node_pool" "pools" { } } } + network_config { + enable_private_nodes = var.enable_private_nodes + } lifecycle { ignore_changes = [initial_node_count] create_before_destroy = true