mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #39203 from kargakis/update-cockroach-example
Automatic merge from submit-queue examples: use 'kubectl scale' in cockroach statefulset example A scaler for statefulsets has been added since 1.4 (https://github.com/kubernetes/kubernetes/pull/30813).
This commit is contained in:
commit
a8b168a77a
@ -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