Kubectl Reference Docs - Kubernetes
kubernetes.io › docs › referencekubectl get pods List all pods in ps output format with more information (such as node name) kubectl get pods -o wide List a single replication controller with specified NAME in ps output format. kubectl get replicationcontroller web List deployments in JSON output format, in the "v1" version of the "apps" API group. kubectl get deployments.v1 ...
kubectl Cheat Sheet - Kubernetes
kubernetes.io › docs › referenceMar 18, 2022 · 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 ...
Deployments - Kubernetes
kubernetes.io › workloads › controllersFeb 03, 2022 · Run the kubectl get deployments again a few seconds later. The output is similar to this: NAME READY UP-TO-DATE AVAILABLE AGE nginx-deployment 3/3 3 3 18s Notice that the Deployment has created all three replicas, and all replicas are up-to-date (they contain the latest Pod template) and available.