EphemeralContainerV1.TerminationMessagePolicy Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies how the termination message of the container is populated. It can be set to control the source of termination messages, choosing between "File" or "FallbackToLogsOnError".
- "File": The termination message is read from the file at the path
specified by the
TerminationMessagePath
property. - "FallbackToLogsOnError": The termination message will default to
container logs if the file at
TerminationMessagePath
is empty and the container exits with an error. Defaults to "File" if not explicitly set.
[YamlDotNet.Serialization.YamlMember(Alias="terminationMessagePolicy")]
public string? TerminationMessagePolicy { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="terminationMessagePolicy")>]
member this.TerminationMessagePolicy : string with get, set
Public Property TerminationMessagePolicy As String
Property Value
- Attributes
-
YamlDotNet.Serialization.YamlMemberAttribute