摘要: 操作基本命令: 通过yaml文件创建: kubectl create -f xxx.yaml (不建议使用,无法更新,必须先delete) kubectl apply -f xxx.yaml (创建+更新,可以重复使用) 通过yaml文件删除: kubectl delete -f xxx.yaml 阅读全文
posted @ 2021-01-19 18:26 dream_fly_info 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 一、查看资源集群状态 1、集群整体状态 kubectl cluster-info 2、更多集群信息 kubectl cluster-info dump 3、查看资源信息 kubectl describe <资源> <名称> 4、实时查看资源信息 kubectl get pod<Pod名称> --wa 阅读全文
posted @ 2021-01-19 18:21 dream_fly_info 阅读(3669) 评论(0) 推荐(0) 编辑