Google Kubernetes Engine (GKE) nodes register with the Kubernetes API server by
creating `Node` objects.

The system component that creates the Node object in the Kubernetes API is one of the following:

- The `kubelet` process.
- A trusted control plane component.

This document describes the node creation
modes in GKE and shows you how to configure the mode for clusters
that use Shielded GKE Nodes. Security engineers and platform administrators can
use control plane node creation to limit the privileges of nodes.

You should already be familiar with the following concepts:

- [Kubernetes nodes](https://kubernetes.io/docs/concepts/architecture/nodes/)
- [Shielded GKE Nodes](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/shielded-gke-nodes.md.txt)
- [TLS bootstrapping](https://kubernetes.io/docs/reference/access-authn-authz/kubelet-tls-bootstrapping/)
- [Node registration with the Kubernetes API](https://docs.cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture.md.txt#node-registration)

## Node creation modes in GKE

Shielded GKE Nodes, which is enabled in all GKE clusters, enforce
cryptographic verification of node identities during the node registration
process. This verification helps to ensure that only legitimate nodes can
register with the Kubernetes API server and run workloads.

The node self-registration workflow, in which the `kubelet` on each node
creates and modifies its `Node` object in the API server, creates a risk if a
node is compromised. For example, in
[CVE-2025-5187](https://nvd.nist.gov/vuln/detail/CVE-2025-5187), a vulnerability
allowed node users to delete the corresponding `Node` objects and register
compromised nodes.

GKE supports the following node creation modes:

- **Control plane node creation** : a trusted GKE control plane component creates `Node` objects. This mode is the default for new clusters that run GKE version 1.37.2-gke.1606000 and later.
- **`kubelet` node creation** : the `kubelet` on each node self-registers the node. This mode is the default for clusters that were created in GKE versions earlier than 1.37.2-gke.1606000.

### Control plane node creation

In GKE version 1.35.3-gke.1189000 and later, you can configure a
trusted GKE control plane component to create `Node` objects
instead of allowing the
`kubelet` to self-register the nodes. After the `kubelet` sets up a TLS
connection with the API server by using the cryptographically verified node
identity, the control plane creates the `Node` object. An
admission controller rejects any requests from the `kubelet` to create the
`Node` object. By using the control plane component to create `Node` objects,
you can reduce the risk of a potentially compromised node creating arbitrary
`Node` objects or manipulating its `Node` specification. To explicitly set the node creation mode when you create a Standard or
Autopilot cluster, do one of the following:

- Google Cloud CLI: specify a value of `CONTROL_PLANE` or `KUBELET` in the `--node-creation-mode` flag.
- Kubernetes Engine API: specify a value of `VIA_CONTROL_PLANE` or `VIA_KUBELET` in the `nodeCreationMode` field of the `NodeCreationConfig` object.

To manually enable control plane node creation, your cluster must meet all of the following requirements:

- The cluster must run GKE version 1.35.3-gke.1189000 or later.
- The cluster must have Shielded GKE Nodes enabled. If you disable Shielded GKE Nodes, you can't use control plane node creation.

## Limitations

There's a brief delay between when the control plane creates a `Node`
object in the Kubernetes API and when the `kubelet` updates that `Node` object
with the full set of node labels and annotations. Any workloads or controllers
that depend on a full set of labels or annotations immediately upon node
creation, might show unexpected behavior. Certain labels and annotations may be
reconciled at a different time than `kubelet` registration. Verify that your
workloads and DaemonSets use label and annotation presence checks before acting.

- Avoid deploying DaemonSets and workloads that have tolerations for all node taints, which might cause Pods to run on nodes that aren't ready.
- Use an `initContainer` to check for node labels before letting main containers run.
- If you use the [Cloud Storage FUSE CSI driver](https://docs.cloud.google.com/kubernetes-engine/docs/concepts/cloud-storage-fuse-csi-driver.md.txt), deploy Pods by using a workload controller, such as a `Deployment`, `StatefulSet`, `DaemonSet`, or `Job`, instead of creating standalone Pods. When a new node registers with the control plane, admission requests for Pods that mount Cloud Storage FUSE volumes might fail temporarily until the `kubelet` reports its version. Workload controllers automatically retry Pod creation after the `kubelet` reports its status.

## Before you begin


Before you start, make sure that you have performed the following tasks:

- Enable the Google Kubernetes Engine API.
[Enable Google Kubernetes Engine API](https://console.cloud.google.com/apis/enableflow?apiid=container.googleapis.com)
- To use the Google Cloud CLI for this task, [install](https://docs.cloud.google.com/sdk/docs/install) and then [initialize](https://docs.cloud.google.com/sdk/docs/initialize.md.txt) the gcloud CLI. If you previously installed the gcloud CLI, get the latest version by running the `gcloud components update` command. Earlier gcloud CLI versions might not support running the commands in this document.

  > [!NOTE]
  > **Note:** For existing gcloud CLI installations, make sure to set the `compute/region` [property](https://docs.cloud.google.com/sdk/docs/properties.md.txt#setting_properties). If you use primarily zonal clusters, set the `compute/zone` instead. By setting a default location, you can avoid errors in the gcloud CLI like the following: `One of [--zone, --region] must be supplied: Please specify location`. You might need to specify the location in certain commands if the location of your cluster differs from the default that you set.

## Enable control plane node creation

New clusters that run version 1.37.2-gke.1606000 and later use control plane
node creation by default. For clusters that were created in earlier versions,
or for clusters where you previously opted out, you can enable node creation by
updating node creation mode for
an existing cluster. For existing clusters, the update affects only new nodes in
the cluster. Existing nodes aren't affected by the change.

The following command enables the control plane node creation mode for an
existing cluster:

```bash
gcloud container clusters update CLUSTER_NAME \
    --node-creation-mode=CONTROL_PLANE \
    --location=CONTROL_PLANE_LOCATION \
```

Replace the following:

- `CLUSTER_NAME`: the name of your cluster.
- `CONTROL_PLANE_LOCATION`: the region or zone of your cluster control plane.

You can also specify the `--node-creation-mode` flag in the [clusters create
command](https://docs.cloud.google.com/sdk/gcloud/reference/container/clusters/create#--node-creation-mode)
and in the [clusters create-auto
command](https://docs.cloud.google.com/sdk/gcloud/reference/container/clusters/create-auto#--node-creation-mode).

## Disable control plane node creation

You can let the `kubelet` process register nodes at any time by specifying a value
of `KUBELET` in the `--node-creation-mode` Google Cloud CLI flag or `VIA_KUBELET`
in the `nodeCreationMode` field of the `NodeCreationConfig` object in the
Kubernetes Engine API. For existing clusters, this change affects only new nodes in
that cluster.

The following command updates a cluster to disable control plane node creation:

```bash
gcloud container clusters update CLUSTER_NAME \
    --node-creation-mode=KUBELET \
    --location=CONTROL_PLANE_LOCATION \
```

Replace the following:

- `CLUSTER_NAME`: the name of your cluster.
- `CONTROL_PLANE_LOCATION`: the region or zone of your cluster control plane.

## What's next

- Learn more about [Shielded GKE Nodes](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/shielded-gke-nodes.md.txt).
- Read the [GKE security
  overview](https://docs.cloud.google.com/kubernetes-engine/docs/concepts/security-overview).
- Learn how to [harden your cluster's
  security](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/hardening-your-cluster).