Share via


ContainerV1.TerminationMessagePolicy Property

Definition

Gets or sets the policy for capturing the termination message for the container. Defines how termination messages should be created and made available to the container. Possible values may include 'File' or 'FallbackToLogsOnError'. A 'File' policy captures the termination message from a specific file inside the container, while 'FallbackToLogsOnError' captures logs if the message file is inaccessible or unavailable.

[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

Applies to