Troubleshoot: Common way of operation and maintenance. #387
Open
Description
General Question
Change the replicas
The following example changes replicas to 2.
kubectl patch mysql sample -p '{"spec":{"replicas":2}}' --type=merge
Close the cluster (change the replicas to 0) will not delete the PVC.
The replicas can only be 0/2/3/5.
常用运维操作
更改节点数
以下示例将名为 sample
的集群节点数更改为2。
kubectl patch mysql sample -p '{"spec":{"replicas":2}}' --type=merge
关闭集群(更改节点数为0)不会删除pvc。
节点数只能为0/2/3/5。