API change: add MemorySwap to KubeletConfiguration
Kubernetes-commit: bda03b4818d4cd329ced48fd016c803585a5a958
This commit is contained in:
parent
65d1554924
commit
061cebb097
|
|
@ -752,6 +752,10 @@ type KubeletConfiguration struct {
|
|||
// Default: true
|
||||
// +optional
|
||||
FailSwapOn *bool `json:"failSwapOn,omitempty"`
|
||||
// Configure swap memory available to container workloads.
|
||||
// +featureGate=NodeSwapEnabled
|
||||
// +optional
|
||||
MemorySwap MemorySwapConfiguration `json:"memorySwap,omitempty"`
|
||||
// containerLogMaxSize is a quantity defining the maximum size of the container log
|
||||
// file before it is rotated. For example: "5Mi" or "256Ki".
|
||||
// Dynamic Kubelet Config (beta): If dynamically updating this field, consider that
|
||||
|
|
@ -1035,3 +1039,10 @@ type MemoryReservation struct {
|
|||
NumaNode int32 `json:"numaNode"`
|
||||
Limits v1.ResourceList `json:"limits"`
|
||||
}
|
||||
|
||||
// Configure swap memory available to container workloads. May be one of
|
||||
// "", "NoSwap": workloads cannot use swap
|
||||
// "UnlimitedSwap": workloads can use unlimited swap, up to the allocatable limit.
|
||||
type MemorySwapConfiguration struct {
|
||||
SwapBehavior string `json:"swapBehavior,omitempty"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue