# Shrink a Cluster - Kubernetes

Like regular TigerGraph clusters, a TigerGraph cluster deployed on Kubernetes can also be shrunk. When you shrink a TigerGraph cluster on Kubernetes, the data across the different nodes are automatically redistributed.

Shrinking a cluster requires several minutes of downtime.

## 1. Prerequisites

• A running TigerGraph Deployment in a Kubernetes cluster

• You have configured `kubectl` for access to your running Kubernetes cluster.

## 2. Procedure

The following are the steps to expand a TigerGraph cluster on Kubernetes.

### 2.1. Identify new cluster replication and partition

Before running any commands to expand a cluster, make sure you have a clear idea of how the new cluster should be distributed. You should have the following information:

• The new replication factor of the cluster

• The new partitioning factor of the cluster

• The new size of the cluster

Change into the `k8s` directory. There is a script named `tg` that you need to perform the actions described in this page.
Invoke the `tg` script with the following arguments to expand the cluster: