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

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more