DEV Community

Rajesh N
Rajesh N

Posted on

How to control the cluster nodes recreation in Tanzu

In a Tanzu Kubernetes cluster, the Supervisor cluster continuously monitors and reconciles the cluster. If any worker node fails to respond within the monitoring interval, it is marked as failed, and a new worker node is created to replace it. However, this operation may not always be accurate. If you plan to perform any maintenance on the Tanzu environment, it is necessary to pause the cluster reconciliation; otherwise, you may see many nodes being recreated.

If you are planning any network maintenance within your organization and expect any storage latency or network latency/interruption, it is better to pause the cluster reconciliation.

How to Pause the Cluster Reconciliation

Login to the Supervisor Node:
root@vcenter [ ~ ]# sshpass -p /usr/lib/vmware-wcp/decryptK8Pwd.py |grep PWD |awk '{print $2}' ssh -o StrictHostKeyChecking=no root@/usr/lib/vmware-wcp/decryptK8Pwd.py |grep IP |awk '{print $2}'

To Pause the Cluster Reconciliation:
kubectl patch cluster --type merge -p '{"spec":{"paused": true}}' -n tanzu-vns tanzu-cluster

To Resume the Cluster Reconciliation:
kubectl patch cluster --type merge -p '{"spec":{"paused": false}}' -n tanzu-vns tanzu-cluster

DevCycle image

Ship Faster, Stay Flexible.

DevCycle is the first feature flag platform with OpenFeature built-in to every open source SDK, designed to help developers ship faster while avoiding vendor-lock in.

Start shipping

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →