Kubernetes Deployment Operations: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 3: | Line 3: | ||
* [[Kubernetes Operations]] | * [[Kubernetes Operations]] | ||
* [[Kubernetes Deployments#Operations|Deployments]] | * [[Kubernetes Deployments#Operations|Deployments]] | ||
=Getting a Deployment= | |||
<syntaxhighlight lang='bash'> | |||
kubectl get deployment <deployment-name> | |||
</syntaxhighlight> | |||
=Creating Deployments= | =Creating Deployments= |
Revision as of 20:18, 2 July 2020
Internal
Getting a Deployment
kubectl get deployment <deployment-name>
Creating Deployments
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>