Common day-2 operations with Tanzu Kubernetes Grid
Now that we have a fully configured and running TKG foundation on AWS, let’s learn how to perform some of the day-2 operations on it. TKG makes these operations very trivial as they do all the heavy lifting behind the scenes:
- Scale a cluster to add or remove nodes
- Upgrade a cluster to bump up the Kubernetes version
- Delete a cluster
- Delete the entire TKG foundation
Let’s start by scaling the workload cluster so that it has three worker nodes instead of just one.
Scaling a Tanzu Kubernetes Grid cluster
Run the following commands to scale the workload cluster we created:
- Switch the
kubectl
context so that it’s pointing to the management cluster that we previously created, which we used to create the workload cluster:$ kubectl config use-context tkg-aws-mgmt-cluster-admin@tkg-aws-mgmt-cluster
- Ensure that the workload cluster has only one worker node by running the following...