Kubernetes Deployment Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Kubernetes Operations * Deployments =Updating Deployments= kubectl get deployment ... -o yaml → modify → kubectl...")
 
Line 7: Line 7:


  kubectl get deployment ... -o yaml → modify → kubectl apply -f
  kubectl get deployment ... -o yaml → modify → kubectl apply -f
=Scaling Up and Down=
kubectl scale --replicas=0 deployment <''my-deployment''>
kubectl scale --replicas=2 deployment <''my-deployment''>

Revision as of 23:16, 23 October 2019

Internal

Updating Deployments

kubectl get deployment ... -o yaml → modify → kubectl apply -f

Scaling Up and Down

kubectl scale --replicas=0 deployment <my-deployment>
kubectl scale --replicas=2 deployment <my-deployment>