add no swap as the default option for swap

Kubernetes-commit: 6a4e19a4ec9e11b77c9357375df4cadd8229836f
This commit is contained in:
Kevin Hannon 2024-01-12 14:42:51 -05:00 committed by Kubernetes Publisher
parent 699a26fb31
commit 877b73430b
1 changed files with 2 additions and 2 deletions

View File

@ -954,8 +954,8 @@ type ShutdownGracePeriodByPodPriority struct {
type MemorySwapConfiguration struct {
// swapBehavior configures swap memory available to container workloads. May be one of
// "", "LimitedSwap": workload combined memory and swap usage cannot exceed pod memory limit
// "UnlimitedSwap": workloads can use unlimited swap, up to the allocatable limit.
// "", "NoSwap": workloads can not use swap, default option.
// "LimitedSwap": workload swap usage is limited. The swap limit is proportionate to the container's memory request.
// +featureGate=NodeSwap
// +optional
SwapBehavior string `json:"swapBehavior,omitempty"`