“KUBECTL SCALE -Bereitstellung” Code-Antworten

So löschen Sie Bereitstellungen in Kubernetes

kubectl delete deployment yourDeploymentName
Man From Earth

KUBECTL SCALE -Bereitstellung

kubectl scale deployment/nginx-deployment --replicas=10
Condemned Chipmunk

Kubernetes erhalten Bereitstellungen

# 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
Concerned Crossbill

skalieren Bereitstellungen

# 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
Concerned Crossbill

Ähnliche Antworten wie “KUBECTL SCALE -Bereitstellung”

Fragen ähnlich wie “KUBECTL SCALE -Bereitstellung”

Weitere verwandte Antworten zu “KUBECTL SCALE -Bereitstellung” auf Shell/Bash

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen