Notes of Kubernetes Operation
文章目录
kubectl
kubectl [command] [TYPE] [NAME] [flags]commandcreategetdeletedescribe
TYPE(to specify resource types)kubectl get pod pod1 kubectl get pods pod1 kubectl get po pod1NAME(to specify resource name, if not specified, list all the resources)
Generate a yaml
kubectl create
# Generate a yaml but not actually create the deployment kubectl create deployment DeployTest --image=nginx -o yaml --dry-run kubectl create deployment DeployTest --image=nginx -o yaml --dry-run > m1.yaml- kubectl get
Export a yaml from a deployed application
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论