rancher 问题排查

Last updated on November 20, 2024 am

🧙 Questions

☄️ Ideas

查询rancher的容器,进入容器看日志
docker ps | grep rancher/rancher
# f693ac71a645        rancher/rancher:v2.4.4                "entrypoint.sh"          15 months ago       Up 40 hours         0.0.0.0:8080->80/tcp, 0.0.0.0:4443->443/tcp                                                                                                                       rancher
docker logs -f --tail=100 f693ac71a645
通过kubectl查询k8s的进程
kubectl get pods --all-namespaces

查询pod日志,状态为Pending没有日志

kubectl logs -f ispong-container-6d55c7c54c-ls6ng -n ispong-dev
直接重启docker
systemctl restart docker

rancher 问题排查
https://ispong.isxcode.com/kubernetes/rancher/rancher 问题排查/
Author
ispong
Posted on
October 13, 2023
Licensed under