Kubernate之常用命令整理

现在伴随着微服务的流行,容器技术得到了快速发展,特别是已容器编排管理的Kubernate,对容器资源的管理非常重要,也是微服务化的前提,今天我们就来整理下常用的kubernate常用命令。

kubectl version
kubectl api-versions
kubectl cluster-info
kubectl get componentstatuses



kubectl get pods       --all-namespaces -o wide
kubectl get deployment --all-namespaces -o wide
kubectl get service    --all-namespaces
kubectl get namespace
kubectl get node
kubectl exec -it pod_name sh -n senyint
kubectl describe pod pod_name -n namespace_name
kubectl logs -f pod_name -n -namespace_name


/root/show.sh | grep service_name
kubectl create -f *.yaml
kubectl delete -f *.yaml
kubectl delete pod pod_name

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值