Skip to content

GCP/GKE: private nodes, DNS-based control plane access, Cloud NAT, Dataplane V2, and agent sandbox#6701

Open
geojaz wants to merge 3 commits into
GoogleCloudPlatform:masterfrom
onix-net:eh/gcp-gke-private-nodes-networking
Open

GCP/GKE: private nodes, DNS-based control plane access, Cloud NAT, Dataplane V2, and agent sandbox#6701
geojaz wants to merge 3 commits into
GoogleCloudPlatform:masterfrom
onix-net:eh/gcp-gke-private-nodes-networking

Conversation

@geojaz
Copy link
Copy Markdown

@geojaz geojaz commented May 27, 2026

Adds several optional GKE cluster-creation features behind flags, all defaulting off so existing behavior is unchanged.

  • --gke_enable_private_nodes, DNS-based control plane access, and Cloud NAT support for private clusters (new flags in providers/gcp/flags.py, network plumbing in providers/gcp/gce_network.py, wiring in providers/gcp/google_kubernetes_engine.py).
  • --gke_enable_dataplane_v2 to create clusters with Dataplane V2.
  • --gke_enable_agent_sandbox to wire --enable-agent-sandbox on cluster creation.

geojaz added 3 commits May 27, 2026 09:59
Enables private nodes paired with --enable-ip-alias, adds DNS access
(--enable-master-authorized-networks and related settings), and provisions
Cloud NAT at the network level (not at cluster create).
Adds an opt-in flag to enable GKE Dataplane V2 (eBPF datapath, Cilium
under the hood) when provisioning a cluster. Off by default. Requires
cluster recreation; the flag has no effect on an existing cluster.
GKE Agent Sandbox is a managed feature that installs the agent-sandbox
controller and CRDs onto the cluster, enabling SandboxClaim / Sandbox /
SandboxWarmPool reconciliation by GKE. This is separate from the gvisor
sandbox runtime (already exposed via --sandbox=type=gvisor on the node
pool spec): the runtime makes RuntimeClass gvisor available; this flag
makes the controller available to manage CRs that use it.

PKB previously had no way to enable it at cluster create time. With this
flag, scenarios that want the managed controller can set
--gke_enable_agent_sandbox=true and PKB appends --enable-agent-sandbox
to the gcloud container clusters create command.

Requires GKE 1.35.2-gke.1269000 or later. See
https://docs.cloud.google.com/kubernetes-engine/docs/how-to/agent-sandbox.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant