kubectl scale
Set a new size for a deployment, replica set, replication controller, or stateful set. More information: https://kubernetes.io/docs/reference/kubectl/generated/kubectl_scale/.
- Scale a replica set:
kubectl scale --replicas rs/
- Scale a resource identified by a file:
kubectl scale --replicas
- Scale a deployment based on current number of replicas:
kubectl scale --replicas --current-replicas /
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
