Module 03 · Managing Applications with Kubernetes
Module 3 Cheat Sheet: The kubectl CLI模块 3 速查表:kubectl 命令行界面
| Command 命令 | Description 描述 |
|---|---|
| kubectl autoscale deployment | Autoscales a Kubernetes Deployment. 对 Kubernetes Deployment 进行自动扩展。 |
| kubectl create configmap | Creates a ConfigMap resource. 创建 ConfigMap 资源。 |
| kubectl get deployments -o wide | Lists deployments with details. 列出具有详细信息的部署。 |
| kubectl get hpa | Lists Horizontal Pod Autoscalers (hpa) 列出水平 Pod 自动缩放器(hpa)。 |
| kubectl scale deployment | Scales a deployment. 对部署进行扩展。 |
| kubectl set image deployment | Updates the current deployment. 更新当前部署。 |
| kubectl rollout | Manages the rollout of a resource. 管理资源的发布过程。 |
| kubectl rollout restart | Restarts the resource so that the containers restart. 重启资源,使容器重启。 |
| kubectl rollout undo kubectl 回滚 | Rollbacks the resource. 回滚资源。 |