Scale In Kubernetes Cluster

EKF supports automatic scaling operations on the Kubernetes cluster using a modified version of the Cluster Autoscaler that supports Rok volumes. This section will guide you through forcefully scaling-in the Kubernetes cluster to a desired size, using the rok-k8s-drain tool.

Warning

Currently, rok-k8s-drain supports scaling-in only EKS clusters.

Procedure

  1. Run rok-k8s-drain and follow the on-screen instructions:

    root@rok-tools:~# rok-k8s-drain
    

Verify

  1. Verify that the cluster has been scaled-down, by listing the nodes:

    root@rok-tools:~# kubectl get nodes
    

Summary

You have successfully scaled-in your cluster.

What's Next

Check out the rest of the maintenance operations that you can perform on your cluster.