Created
September 28, 2021 16:06
-
-
Save jhoelzel/5a778e55192e398a0e34d083b52159e3 to your computer and use it in GitHub Desktop.
Kubernetes nodes scale up and down
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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