In this section:
Modified: for 12.1.3
The SBC CNe is enhanced with the termination message policy. It provides a way for containers to write information about terminal events to a location. When a container fails, you can quickly diagnose the issue using kubectl
to receive a concise overview of the pod’s state, including its termination message. However, if the pod logs are enormous and a container does not write a specific termination message, it can become time-consuming. You can configure the terminationMessagePolicy
in the YAML file to receive the application failure logs faster and more simply.
The Kubernetes retrieves termination messages from the termination message file. You can set the terminationMessagePolicy
field of a container for further customization. When you set this field to FallbackToLogsOnError
, the SBC directs the Kubernetes to use the last chunk of the container log output if the termination message file is empty and the container is exited with an error.
Parameter | Description | M/O |
---|---|---|
terminationMessagePolicy | The policy for the container termination message. Valid value:
| M |
The following table represents the termination message policy configurations for the SBC CNe:
Container Type | Container Name | Configuration |
---|---|---|
SBC Containers |
|
|
Other Containers |
|
|
The following limitations exist in this release:Termination Message Policy Value Limitations FallbackToLogsOnError