Kubernetes(十五)kubectl管理命令

时间:2020-01-31 14:17:35   收藏:0   阅读:186
官网链接 https://kubernetes.io/zh/docs/reference/kubectl/overview/#%e8%af%ad%e6%b3%95
概述:kubectl是一个命令行接口,用于对kubernetes集群运行命令。     
 
kubect命令行
语法结构 kubetctl [command] [type] [name] [flages]
       
kubectl格式化输出
语法结构  kubetctl [command] [type] [name] -o=<output_format>
示例:kubectl get pod -o wide 输出pod详细信息
 
kubectl根据命名空间过滤
语法结构  kubetctl [command] [type] [name] -o=<output_format> -n namespace
 
示例:kubectl get pod -o wide -n kube-system
命令
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!