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:
Kubernetes Submit Queue 2016-12-28 12:26:48 -08:00 committed by GitHub
commit a8b168a77a

View File

@ -98,10 +98,10 @@ database and ensuring the other replicas have all data that was written.
## Scaling up or down
Simply patch the Stateful Set by running
Scale the Stateful Set by running
```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