Symptoms:
After resizing a Tanzu Kubernetes Grid Integrated Edition (TKGi) cluster using the "tkgi resize <cluster-name>" command, any existing tags one the nodes are lost.
The resize command assumes --tags "" which removes the tagging.
It is not recommended to use "tkgi resize", instead use "tkgi update-cluster", see Scaling Existing cluster.
This is a known issue affecting TKGI. There is currently no resolution.
Workaround:
Use a command similar to the following to resize the cluster in lieu of the the "tkgi resize <cluster-name> --num-nodes" command:
tkgi update-cluster <cluster-name> --num-nodes <desired workers> --tags <existing tags>
Note: The syntax for listing tags is:
--tags []ClusterTag Action flag, Add/Update/Delete Tags for VMs as a list of key value pairs (eg. --tags "key1:val1,key2:val2,keyWithoutVal"). To delete all tags, pass an empty string (eg. --tags "")