From 4256f4447709192434fea87efdbe03c1e08131da Mon Sep 17 00:00:00 2001 From: Aditya Shrivastav <81470938+aditya-shrivastavv@users.noreply.github.com> Date: Sat, 21 Oct 2023 22:32:03 +0530 Subject: [PATCH] kubectl-scale: add page (#11123) * kubectl scale: add page * kubectl scale: fix typo Co-authored-by: Juri Dispan --------- Co-authored-by: Juri Dispan --- pages/common/kubectl-scale.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/common/kubectl-scale.md diff --git a/pages/common/kubectl-scale.md b/pages/common/kubectl-scale.md new file mode 100644 index 0000000000..caffce5fc3 --- /dev/null +++ b/pages/common/kubectl-scale.md @@ -0,0 +1,16 @@ +# kubectl edit + +> Set a new size for a deployment, replica set, replication controller, or stateful set. +> More information: . + +- Scale a replica set: + +`kubectl scale --replicas={{number_of_replicas}} rs/{{replica_name}}` + +- Scale a resource identified by a file: + +`kubectl scale --replicas={{number_of_replicas}} -f {{path/to/file.yml}}` + +- Scale a deployment based on current number of replicas: + +`kubectl scale --current-replicas={{current_replicas}} --replicas={{number_of_replicas}} deployment/{{deployment_name}}`