This document shows how to enable VM tracking with vSphere tags when you create a new user cluster.
Each node in your cluster is a VM. When VM tracking is enabled, GKE on VMware attaches tags to your cluster worker nodes and control-plane nodes. You can use the tags to select VMs that belong to a particular user cluster or node pool.
Each control-plane node is given a tag that specifies the cluster name.
Each worker node is given two tags: one that specifies the cluster name and one that specifies both the cluster name and the nodepool name.
Before you begin
You can enable VM tracking when you create a new user cluster. You cannot enable VM tracking by updating an existing cluster.
Create vSphere categories
- vSphere Tagging.Assign or Unassign vSphere Tag
- vSphere Tagging.Assign or Unassign vSphere Tag on Object (vSphere 7.0)
- vSphere Tagging.Create vSphere Tag
- vSphere Tagging.Delete vSphere Tag
Enable VM tracking
View the VMs that have an attached tag
In the vSphere web client, you can view the VMs that have a particular tag
attached. For example, to view all the VMs in your user cluster, go to
Tags & Custom Attributes. Then select the tag that belongs to
machine.onprem.gke.io/cluster-name and has the same name as your user cluster.