# Scale In/Out
+ Patch the `TiDBCluster` directly, `TiDB` operator will do the reset of scaling

+ Scale in/out `PD`
  + **`kubectl patch -n ${namespace} tc ${cluster_name} --type merge --patch '{"spec":{"pd":{"replicas":3}}}'`**

+ Scale in/out `TiKV`
  + **`kubectl patch -n ${namespace} tc ${cluster_name} --type merge --patch '{"spec":{"tikv":{"replicas":3}}}'`**


------------------------------------------------------------

