- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 175 for noswap (0.14 sec)
-
pkg/kubelet/types/constants.go
SystemReservedEnforcementKey = "system-reserved" KubeReservedEnforcementKey = "kube-reserved" NodeAllocatableNoneKey = "none" ) // SwapBehavior types const ( LimitedSwap = "LimitedSwap" NoSwap = "NoSwap"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 13:13:22 UTC 2024 - 1K bytes - Viewed (0) -
pkg/kubelet/util/swap/swap_util.go
// https://github.com/kubernetes/kubernetes/issues/125137 klog.InfoS("Running under a user namespace - tmpfs noswap is not supported") return false } kernelVersion, err := utilkernel.GetVersion() if err != nil { klog.ErrorS(err, "cannot determine kernel version, unable to determine is tmpfs noswap is supported") return false }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 10:07:06 UTC 2024 - 4.2K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_container_linux_test.go
{ name: "Swap disabled on node, NodeSwap feature gate turned off, cgroups v2, LimitedSwap", swapDisabledOnNode: true, cgroupVersion: cgroupV2, qosClass: v1.PodQOSBurstable, nodeSwapFeatureGateEnabled: false, swapBehavior: types.LimitedSwap, }, // With no swapBehavior, NoSwap should be the default {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 41K bytes - Viewed (0) -
pkg/volume/emptydir/empty_dir_test.go
if testCase.tmpfsNoswapSupported && !doesStringArrayContainSubstring(options, swap.TmpfsNoswapOption) { t.Errorf("tmpfs noswap option is expected when supported. options: %v", options) } if !testCase.tmpfsNoswapSupported && doesStringArrayContainSubstring(options, swap.TmpfsNoswapOption) { t.Errorf("tmpfs noswap option is not expected when unsupported. options: %v", options) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 10:18:16 UTC 2024 - 30.7K bytes - Viewed (0) -
pkg/kubelet/apis/config/validation/validation.go
} } if localFeatureGate.Enabled(features.NodeSwap) { switch kc.MemorySwap.SwapBehavior { case "": case kubetypes.NoSwap: case kubetypes.LimitedSwap: default: allErrors = append(allErrors, fmt.Errorf("invalid configuration: memorySwap.swapBehavior %q must be one of: \"\", %q or %q", kc.MemorySwap.SwapBehavior, kubetypes.LimitedSwap, kubetypes.NoSwap)) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 10 17:13:59 UTC 2024 - 18.2K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_container_linux.go
} } return lcr } // configureContainerSwapResources configures the swap resources for a specified (linux) container. // Swap is only configured if a swap cgroup controller is available and the NodeSwap feature gate is enabled. func (m *kubeGenericRuntimeManager) configureContainerSwapResources(lcr *runtimeapi.LinuxContainerResources, pod *v1.Pod, container *v1.Container) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 17.2K bytes - Viewed (0) -
pkg/kubelet/apis/config/v1beta1/defaults_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 05 21:10:42 UTC 2024 - 51K bytes - Viewed (0) -
pkg/kubelet/apis/config/validation/validation_test.go
conf.FeatureGates = map[string]bool{"NodeSwap": true} conf.MemorySwap.SwapBehavior = "invalid-behavior" return conf }, errMsg: "invalid configuration: memorySwap.swapBehavior \"invalid-behavior\" must be one of: \"\", \"LimitedSwap\" or \"NoSwap\"", }, { name: "specify MemorySwap.SwapBehavior without enabling NodeSwap",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 05 21:10:42 UTC 2024 - 28.7K bytes - Viewed (0) -
cmd/kubelet/app/server.go
// This is just a log because we are using a default of NoSwap. klog.InfoS("NoSwap is set due to memorySwapBehavior not specified", "memorySwapBehavior", s.MemorySwap.SwapBehavior, "FailSwapOn", s.FailSwapOn) } } kubeDeps.ContainerManager, err = cm.NewContainerManager( kubeDeps.Mounter, kubeDeps.CAdvisorInterface, cm.NodeConfig{ NodeName: nodeName,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 00:05:34 UTC 2024 - 53.9K bytes - Viewed (0) -
pkg/kubelet/cm/container_manager_linux.go
} isSwapOn, err := swap.IsSwapOn() if err != nil { return nil, fmt.Errorf("failed to determine if swap is on: %w", err) } if isSwapOn { if failSwapOn { return nil, fmt.Errorf("running with swap on is not supported, please disable swap or set --fail-swap-on flag to false") } if !swap.IsTmpfsNoswapOptionSupported(mountUtil, nodeConfig.KubeletRootDir) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 10:18:16 UTC 2024 - 35.1K bytes - Viewed (0)