Tags are lost when resizing Tanzu Kubernetes Grid Integrated Edition clusters
search cancel

Tags are lost when resizing Tanzu Kubernetes Grid Integrated Edition clusters

book

Article ID: 317025

calendar_today

Updated On:

Products

VMware Tanzu Kubernetes Grid Integrated (TKGi) VMware Tanzu Kubernetes Grid Integrated Edition

Issue/Introduction

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.

Environment

VMware Tanzu Kubernetes Grid Integrated Edition 1.x

Cause

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.

Resolution

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 "")