You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If my pod keeps crashing (in this case due to external dependency missing) it gets put into CrashLoopBackOff state. The problem then is that you can't get logs in that state so it's hard to figure out why it's crashing.
# oc get pods
NAME READY STATUS RESTARTS AGE
logging-kibana-1-rsjx9 1/2 CrashLoopBackOff 15 3d
# oc logs logging-kibana-1-rsjx9 kibana
Error from server: Internal error occurred: Pod "logging-kibana-1-rsjx9" in namespace "logging" : pod is not in 'Running', 'Succeeded' or 'Failed' state - State: "Pending"
I think it would be better if CrashLoopBackOff state were counted the same as Failed for log access purposes.
Activity
deads2k commentedon Oct 27, 2015
This changed at some point. I'm on a much older build at home, but I can check crash looping logs.
0xmichalis commentedon Oct 27, 2015
Is
docker logsworking?sosiouxme commentedon Oct 27, 2015
I should mention the context: This is from our latest internal OSE 3.1 build. So reasonably close to master.
Yes, docker logs works. Of course the ordinary user can only get to them via the API.
0xmichalis commentedon Oct 29, 2015
Opened kubernetes/kubernetes#16507
0xmichalis commentedon Oct 29, 2015
We probably need to cherry-pick kubernetes/kubernetes#15799 for this