Commit a8b168a7 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

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).
parents d86e16a3 fa02986c
...@@ -98,10 +98,10 @@ database and ensuring the other replicas have all data that was written. ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment