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> --num-nodes # command, any existing tags on the nodes are lost.

Environment

VMware Tanzu Kubernetes Grid Integrated Edition 1.x

Cause

The resize command assumes --tags "" which removes the tagging.

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 lieue of the the tkgi resize <cluster-name> --num-nodes # command:

tkgi update-cluster <cluster-name> --num-nodes <desired workers> --tags <exsiting 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 "")

 


Additional Information

Impact/Risks:
Note: TKGI 1.10.0 has the issue "The TKGI CLI Resize and Update Cluster Commands Remove the Network Profile CNI Configuration from a Cluster. " and will need to be updated to TKGi 1.10.1 or later.