systemctl status docker
systemctl status etcd
systemctl status kubelet
systemctl restart kubelet
systemctl restart kube-proxy
systemctl restart kube-apiserver
systemctl restart kube-controller-manager
systemctl restart kube-scheduler
systemctl status kubelet kube-proxy kube-apiserver kube-controller-manager kube-scheduler #可同时多个服务一起查看
子节点各类服务启停命令
systemctl restart kubelet
systemctl restart kube-proxy
systemctl status kubelet kube-proxy
查看最小节点Pod的应用情况
kubectl -s ip:port --namespace=kube-system get po
kubectl -s ip:port --namespace=kube-system get po -o wide #服务详情
kubectl -s ip:port --namespace=kube-system get po -o wide -w #动态监控服务运行
进入容器
kubectl -s ip:port --namespace=kube-system get po
kubectl -s ip:port --namespace=kube-system exec -ti 服务名 bash
查看Pod的yaml详细
kubectl -s ip:port --namespace=kube-system get po app-bdg5h -o yaml
查看Pod的label详细
kubectl -s ip:port --namespace=kube-system get node --show-labels
删除状态为Evicted 的Pod
kubectl -s ip:port --namespace=kube-system get pods |grep Evicted |awk'{print $1}'|xargs kubectl -s ip:port --namespace=kube-system delete pod
kubernetes与docker环境下命令整合【持续更新】查看集群环境部署的服务kubectl -s ip:port --namespace=kube-system cluster-infokubectl -s ip:port cluster-info主节点各类服务启停命令systemctl status dockersystemctl status etcdsystemctl status kubeletsystemctl restart kubeletsystemctl res