This article describes several scenarios that can cause containers to exit and provides instructions on how to troubleshoot these issues.
When a container exits (not killed by external sources), the exit code is usually between 0 and 128. 0 indicates a normal exit and 1-127 indicates exits due to exceptions. For example, if an application detects that its launch parameters or conditions are not met or the application panics but the exception is not handled, the application will exit.
Refer to Using Exit Codes to Troubleshoot Pod Exceptions for more information on container exit code details.
If the application relies on the cluster DNS service, unresolved DNS requests will cause the application to throw exceptions and exit. For example, if the application needs to connect to the database when it launches and the database uses a service name or external domain name that needs to be resolved by a DNS server. Unresolved DNS requests lead to application exception and exit. Possible causes are as follows:
If the application is not configured properly, this can also result in the application exiting. Possible causes are as follows:
Apakah halaman ini membantu?