kubectl Cheat Sheet | Kubernetes
kubernetes.io › docs › referenceDec 05, 2021 · kubectl set image deployment/frontend www = image:v2 # Rolling update "www" containers of "frontend" deployment, updating the image kubectl rollout history deployment/frontend # Check the history of deployments including the revision kubectl rollout undo deployment/frontend # Rollback to the previous deployment kubectl rollout undo deployment/frontend --to-revision = 2 # Rollback to a specific ...
Kubectl Reference Docs - Kubernetes
kubernetes.io › docs › referencekubectl autoscale rc foo --max=5 --cpu-percent=80. Creates an autoscaler that automatically chooses and sets the number of pods that run in a Kubernetes cluster. Looks up a deployment, replica set, stateful set, or replication controller by name and creates an autoscaler that uses the given resource as a reference.
How do you rollback deployments in Kubernetes?
https://learnk8s.io/kubernetes-rollbackskubectl rollout history deployment/app REVISION CHANGE-CAUSE 1 kubectl create --filename = deployment.yaml --record = true 2 kubectl apply --filename = deployment.yaml --record = true The --record command can be used with any resource type, but the value is only used in Deployment, DaemonSet, and StatefulSet resources, i.e. resources that can be "rolled out" (see kubectl …
kubectl Cheat Sheet | Kubernetes
https://kubernetes.io/docs/reference/kubectl/cheatsheet05.12.2021 · kubectl set image deployment/frontend www = image:v2 # Rolling update "www" containers of "frontend" deployment, updating the image kubectl rollout history deployment/frontend # Check the history of deployments including the revision kubectl rollout undo deployment/frontend # Rollback to the previous deployment kubectl rollout undo …