When scale in worker node of vSphere with Tanzu guest cluster (TKC), worker nodes will be deleted randomly. The article is to provide solution how to delete specific worker node.
VMware vSphere with Tanzu
Follow the steps to delete specific worker node when scale in:
ubectl get machine -n <namespace>kubectl annotate machine -n <namespace> <tkc-worker-node-need-delete> "cluster.x-k8s.io/delete-machine"="yes"kubectl edit tkc -n <namespace> <tkc-name>nodePools:- name: worker replicas: #