Answers for "scale deployment"

5

kubernetes get deployments

# Get pods in default namespace
kubectl get deployments

#Get Pods in my-namespace
kubectl get deployments -n my-namespace

#Get Pods in all namespaces
kubectl get deployments --all-namespaces
Posted by: Guest on October-20-2020
1

scale deployment

# scale deployment in the default namespace, named myDeploymentName to have 3 pods
kubectl scale deployment/myDeploymentName --replicas=3

# scale deployment in the myNamespace namespace, named myDeploymentName to have 3 pods
kubectl scale deployment/myDeploymentName --replicas=3 -n myNamespace
Posted by: Guest on November-16-2020
0

scale deployment

kubectl scale deployment.v1.apps/nginx-deployment --replicas=10
Posted by: Guest on April-26-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language