mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
examples: use 'kubectl scale' in cockroach statefulset example
This commit is contained in:
parent
fc41bc6ec6
commit
fa02986c80
@ -98,10 +98,10 @@ database and ensuring the other replicas have all data that was written.
|
|||||||
|
|
||||||
## Scaling up or down
|
## Scaling up or down
|
||||||
|
|
||||||
Simply patch the Stateful Set by running
|
Scale the Stateful Set by running
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
kubectl patch statefulset cockroachdb -p '{"spec":{"replicas":4}}'
|
kubectl scale statefulset cockroachdb --replicas=4
|
||||||
```
|
```
|
||||||
|
|
||||||
Note that you may need to create a new persistent volume claim first. If you
|
Note that you may need to create a new persistent volume claim first. If you
|
||||||
|
Loading…
Reference in New Issue
Block a user