sincecutoff.com
← all changes

gcloud container node-pools create adds --subnetwork

Introduced 2026-04-28 · score 0.91

HOW TO USE IT

When creating a node pool on a cluster with multiple available subnets, pass `--subnetwork` to choose one. The subnet must already be assigned to the cluster.

gcloud container node-pools create <POOL_NAME> --cluster=<CLUSTER_NAME> --location=<LOCATION> --subnetwork=<SUBNET_NAME>

WHY THIS HELPS

Choose a subnetwork when creating a Kubernetes Engine node pool.

REQUIREMENTS AND LIMITATIONS

  • POOL_NAME (required): Name of the new node pool.
  • --cluster: Cluster to add the node pool to.
  • --location: Cluster region or zone.
  • --subnetwork: Name or full resource path of the subnet to use; the subnet must already be assigned to the cluster.
  • Prerequisite: Install and initialize the gcloud CLI; set a default compute region or zone, or supply the cluster location.
  • Prerequisite: For additional subnets, the cluster must be VPC-native and run GKE 1.30.3-gke.1211000 or later. The selected subnet must already be assigned to the cluster.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card