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
Container Lifecycle Hooks exit on non-0 exit code #102841
Comments
@Manu10744: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/kind support |
https://kubernetes.io/docs/tasks/configure-pod-container/attach-handler-lifecycle-event/#discussion. The Container's state will only change to Running when the postStart hook is successfully executed, so I don't understand what your question is? It is also recommended to provide the |
/triage needs-information |
Kubernetes does not use issues on this repo for support requests. If you have a question on how to use Kubernetes or to debug a specific issue, please visit our forums. It looks like we have some documentation for this already as linked by @HongjiangHuang but I will also mark this with a docs tag. /kind documentation |
@ehashman: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hi,
i don't understand why Container Lifecycle Hooks are instantly killed by Kubernetes (Exit Code 137) when some command is used that returns a non-0 exit code. Sometimes this is expected behavior and i don't understand why this is not possible with Kubernetes.
For example, in a
postStart
lifecycle hook, if i am trying to wait for a webservice inside the container to be running like so:then this will fail instantly as soon as the first curl command fails on
Connection refused
.The text was updated successfully, but these errors were encountered: