Skip to content

Instantly share code, notes, and snippets.

@jhoelzel
Created September 28, 2021 16:06
Show Gist options
  • Save jhoelzel/5a778e55192e398a0e34d083b52159e3 to your computer and use it in GitHub Desktop.
Save jhoelzel/5a778e55192e398a0e34d083b52159e3 to your computer and use it in GitHub Desktop.
Kubernetes nodes scale up and down
# Scale Up the Deployment
kubectl scale --replicas=20 deployment/<Deployment-Name>
kubectl scale --replicas=20 deployment/my-deployment
# Verify Deployment status
kubectl get deployments
# Verify ReplicaSet has been updated
kubectl get rs
# Verify Pods being created
kubectl get pods
# Scale Down the Deployment
kubectl scale --replicas=10 deployment/my-deployment
kubectl get deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment