Answers for "set image 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

set image deployment

kubectl set image deployment.v1.apps/nginx-deployment nginx=nginx:1.161 --record=true
Posted by: Guest on April-26-2021

Browse Popular Code Answers by Language