- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for ExcludeOverhead (0.32 sec)
-
pkg/kubelet/kuberuntime/kuberuntime_sandbox_linux.go
} return resources } func (m *kubeGenericRuntimeManager) calculateSandboxResources(pod *v1.Pod) *runtimeapi.LinuxContainerResources { opts := resourcehelper.PodResourcesOptions{ ExcludeOverhead: true, } req := resourcehelper.PodRequests(pod, opts) lim := resourcehelper.PodLimits(pod, opts) var cpuRequest *resource.Quantity if _, cpuRequestExists := req[v1.ResourceCPU]; cpuRequestExists {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 09 23:15:53 UTC 2023 - 2K bytes - Viewed (0) -
pkg/api/v1/resource/helpers.go
Reuse v1.ResourceList // InPlacePodVerticalScalingEnabled indicates that the in-place pod vertical scaling feature gate is enabled. InPlacePodVerticalScalingEnabled bool // ExcludeOverhead controls if pod overhead is excluded from the calculation. ExcludeOverhead bool // ContainerFn is called with the effective resources required for each container within the pod. ContainerFn func(res v1.ResourceList, containerType podutil.ContainerType)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 26 13:58:16 UTC 2023 - 16.3K bytes - Viewed (0) -
pkg/api/v1/resource/helpers_test.go
v1.ResourceName(v1.ResourceMemory): resource.MustParse("240"), }, }, } for idx, tc := range cases { resRequests := PodRequests(tc.pod, PodResourcesOptions{ExcludeOverhead: true}) resLimits := PodLimits(tc.pod, PodResourcesOptions{ExcludeOverhead: true}) if !equality.Semantic.DeepEqual(tc.expectedRequests, resRequests) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 07 22:26:13 UTC 2023 - 38.3K bytes - Viewed (0) -
pkg/kubelet/cm/devicemanager/topology_hints.go
return ids } func (m *ManagerImpl) getPodDeviceRequest(pod *v1.Pod) map[string]int { // for these device plugin resources, requests == limits limits := resource.PodLimits(pod, resource.PodResourcesOptions{ ExcludeOverhead: true, }) podRequests := make(map[string]int) for resourceName, quantity := range limits { if !m.isDevicePluginResource(string(resourceName)) { continue }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jan 27 02:10:25 UTC 2024 - 9.9K bytes - Viewed (0)