Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failing container does not increase Restart count, and log content is unexpected #247

Open
bcle opened this issue Sep 14, 2021 · 0 comments

Comments

@bcle
Copy link

bcle commented Sep 14, 2021

On a "normal" pod running on a traditional (not KIP) node, when a container fails, it is restarted, and the pod's restart count for that container is incremented.
With a KIP pod, the behavior is different in the following ways:

  • The restart count is not incremented
  • The State of the container is always Running, instead of the expected transitions between Terminated and Waiting.
  • The output of kubectl logs for that pod shows the accumulated log output of all runs of the container, instead of the last one.
    To reproduce, start this simple pod that exits with status 1 after a few seconds:
kubectl run xenial --image=ubuntu:xenial --command -- bash -c 'echo "I am about to fail"; sleep 5; exit 1'

Then observe the state of the pod with kubectl describe pod xenial
Furthermore, observe the output of kubectl logs xenial

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant