Share via


ContainerResizePolicyV1 Class

Definition

Represents a policy for resizing containers in a Kubernetes environment.

[YamlDotNet.Serialization.YamlSerializable]
public sealed class ContainerResizePolicyV1
[<YamlDotNet.Serialization.YamlSerializable>]
type ContainerResizePolicyV1 = class
Public NotInheritable Class ContainerResizePolicyV1
Inheritance
ContainerResizePolicyV1
Attributes
YamlDotNet.Serialization.YamlSerializableAttribute

Remarks

This class defines the configuration for a container's resize policy, specifically the associated resource and the restart behavior.

Constructors

ContainerResizePolicyV1()

Properties

ResourceName

Gets or sets the name of the resource associated with the container's resize policy.

RestartPolicy

Gets or sets the restart policy for the container. Determines the behavior of the container regarding restarts upon failure or completion. Typical options could include policies like "Always", "OnFailure", or "Never".

Applies to