# Apply Changes to a Cluster

When scaling, updating, or upgrading the cluster, edit the `sdb-cluster.yaml` file and run the following command.

```shell
kubectl apply -f sdb-cluster.yaml
```

This will cause the Operator to scale, update, or upgrade the cluster. After running this command, [wait for the cluster to become stable](https://docs.singlestore.com/db/v9.1/reference/singlestore-operator-reference/verify-cluster-stability.md).

Refer to the appropriate section of this reference to determine which fields in the `sdb-cluster.yaml` file to [scale](https://docs.singlestore.com/db/v9.1/reference/singlestore-operator-reference/scale-a-cluster.md), update, or [upgrade](https://docs.singlestore.com/db/v9.1/reference/singlestore-operator-reference/perform-an-upgrade.md) the cluster.

Some updates can be achieved by updating the Operator’s command-line arguments rather than updating the cluster directly. For example, [backups](https://docs.singlestore.com/db/v9.1/reference/singlestore-operator-reference/backups.md) can be updated either via the `sdb-operator.yaml` file (which will first update the Operator, and the Operator will then update the cluster) or via the `sdb-cluster.yaml` file (where the Operator will remain unchanged, but will still update the cluster).

To update the cluster via the Operator’s command-line arguments, edit `spec.template.spec.containers[0].args` in the `sdb-operator.yaml`  file and add, update, or delete the desired command-line arguments.

Run the following command to apply these changes.

```shell
kubectl apply -f sdb-operator.yaml
```

The Operator pod will be restarted. After the new Operator pod has been started, [wait for the cluster to become stable](https://docs.singlestore.com/db/v9.1/reference/singlestore-operator-reference/verify-cluster-stability.md).

***

Modified at: September 7, 2022

Source: [/db/v9.1/reference/singlestore-operator-reference/apply-changes-to-a-cluster/](https://docs.singlestore.com/db/v9.1/reference/singlestore-operator-reference/apply-changes-to-a-cluster/)

(An index of the documentation is available at /llms.txt)
