Difference between revisions of "Kubectl scale deployment"

From wikieduonline
Jump to navigation Jump to search
 
(One intermediate revision by one other user not shown)
Line 14: Line 14:
 
  deployment.apps/grafana scaled
 
  deployment.apps/grafana scaled
 
   
 
   
  kubectl get deployments
+
  [[kubectl get deployments]]
 
  NAME      READY  UP-TO-DATE  AVAILABLE  AGE
 
  NAME      READY  UP-TO-DATE  AVAILABLE  AGE
 
  grafana  1/1    1            1          30m
 
  grafana  1/1    1            1          30m
Line 30: Line 30:
 
* <code>[[kubectl rollout restart deployment]]</code>
 
* <code>[[kubectl rollout restart deployment]]</code>
 
* [[CKA: Know how to scale applications]]
 
* [[CKA: Know how to scale applications]]
 +
* [[aws ecs update-service --foce-new-deployment]]
  
 
== See also ==
 
== See also ==

Latest revision as of 07:15, 27 August 2024

kubectl scale deployment
kubectl scale deployment your-deployment --replicas=0 -n service 

Restart containers in a deployment[edit]

kubectl scale deployment mygrafanadeployment --replicas=0
deployment.apps/grafana scaled

kubectl get deployments
NAME      READY   UP-TO-DATE   AVAILABLE   AGE
grafana   0/0     0            0           29m

kubectl scale deployment mygrafanadeployment --replicas=1
deployment.apps/grafana scaled

kubectl get deployments
NAME      READY   UP-TO-DATE   AVAILABLE   AGE
grafana   1/1     1            1           30m

kubectl describe pods
kubectl describe deployment grafana

Related[edit]

See also[edit]

Advertising: