k8s CrashLoopBackOff
ingress-service-pods1、列出podskubectl get po -n kube-system输出:NAMEREADYSTATUSRESTARTSAGEtraefik-ingress-5488dc6fb4-z79x50/1...
ingress-service-pods
1、列出pods
kubectl get po -n kube-system
输出:
NAME READY STATUS RESTARTS AGE
traefik-ingress-5488dc6fb4-z79x5 0/1 CrashLoopBackOff 29 127m
2、查看pod的描述
kubectl describe po traefik-ingress -n kube-system
输出:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Pulling 27m (x25 over 127m) kubelet, docker-desktop Pulling image "traefik"
Warning BackOff 2m21s (x569 over 127m) kubelet, docker-desktop Back-off restarting failed container
kubectl get po traefik-ingress-5488dc6fb4-z79x5 -n kube-system -o yaml
3、查看log
kubectl logs traefik-ingress-5488dc6fb4-z79x5 -n kube-system
输出:
command traefik error: failed to decode configuration from flags: field not found, node: kubernetes
进入容器
kubectl exec -it moose-7d4486c4fc-9fgb5 -- /bin/sh
更多推荐
所有评论(0)