You are viewing an old version of this content. View the current version.
Compare with Current
View Version History
Version 1
Current »
Step-by-step guide on how to configure HI GIO Kubernetes cluster autoscale
Install tanzu-cli
Create cluster-autoscaler deployment from tanzu package using tanzu-cli
Enable cluster autoscale for your cluster
Test cluster autoscale
Delete cluster-autoscaler deployment and clean up test resource
Click here to expand...
Install tanzu-cli
#Install tanzu-cli to ubuntu
sudo apt update
sudo apt install -y ca-certificates curl gpg
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://storage.googleapis.com/tanzu-cli-installer-packages/keys/TANZU-PACKAGING-GPG-RSA-KEY.gpg | sudo gpg --dearmor -o /etc/apt/keyrings/tanzu-archive-keyring.gpg
echo "deb [signed-by=/etc/apt/keyrings/tanzu-archive-keyring.gpg] https://storage.googleapis.com/tanzu-cli-installer-packages/apt tanzu-cli-jessie main" | sudo tee /etc/apt/sources.list.d/tanzu.list
sudo apt update
sudo apt install -y tanzu-cli
#Verify tanzu-cli installation
tanzu version

Create cluster-autoscaler deployment from tanzu package using tanzu-cli
Switched to your Kubernetes context
kubectl config use-context <your context name>

List available cluster-autoscaler in tanzu package and note the version name
tanzu package available list cluster-autoscaler.tanzu.vmware.com

Create kubeconfig secret name cluster-autoscaler-mgmt-config-secret
in cluster kube-system
namespace
kubectl create secret generic cluster-autoscaler-mgmt-config-secret \
--from-file=value=<path to your kubeconfig file> \
-n kube-system


Test cluster autoscale

End.