Skip to content

Commit

Permalink
add no swap as the default option for swap
Browse files Browse the repository at this point in the history
Kubernetes-commit: 6a4e19a4ec9e11b77c9357375df4cadd8229836f
  • Loading branch information
kannon92 authored and k8s-publishing-bot committed Jan 12, 2024
1 parent 699a26f commit 877b734
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/v1beta1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 877b734

Please sign in to comment.