Skip to content

K8s中文文档

查看k8s/k3s的安装状态

shell
kubectl get all -n kube-sysyem

查看rc、namespace、pod、service

shell
kubectl get rc,namespace,pods,svc

查看指定pod跑在哪个node上

shell
ubectl get pod mysql -o wide

查看相关信息,包括报错和镜像拉取进度

shell
kubectl describe pod mysql

通过配置文件创建一个集群资源对象

shell
kubectl create -f **.json/yaml

删除某对象

shell
kubectl delete -f **.json/yaml

To Be Continued!😎