- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for cpuRequests (0.56 sec)
-
pkg/kubelet/cm/helpers_linux.go
} }, }) // map hugepage pagesize (bytes) to limits (bytes) hugePageLimits := HugePageLimits(reqs) cpuRequests := int64(0) cpuLimits := int64(0) memoryLimits := int64(0) if request, found := reqs[v1.ResourceCPU]; found { cpuRequests = request.MilliValue() } if limit, found := limits[v1.ResourceCPU]; found { cpuLimits = limit.MilliValue() }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 14 11:52:28 UTC 2023 - 9.8K bytes - Viewed (0) -
pkg/kubelet/kubelet.go
podCopy := pod.DeepCopy() cpuAvailable := node.Status.Allocatable.Cpu().MilliValue() memAvailable := node.Status.Allocatable.Memory().Value() cpuRequests := resource.GetResourceRequest(podCopy, v1.ResourceCPU) memRequests := resource.GetResourceRequest(podCopy, v1.ResourceMemory) if cpuRequests > cpuAvailable || memRequests > memAvailable { klog.V(3).InfoS("Resize is not feasible as request exceeds allocatable node resources", "pod", podCopy.Name)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 126.1K bytes - Viewed (1) -
pkg/kubelet/kuberuntime/kuberuntime_container_linux.go
// set linux container resources var cpuRequest *resource.Quantity if _, cpuRequestExists := container.Resources.Requests[v1.ResourceCPU]; cpuRequestExists { cpuRequest = container.Resources.Requests.Cpu() } lcr := m.calculateLinuxResources(cpuRequest, container.Resources.Limits.Cpu(), container.Resources.Limits.Memory())
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/api/v1/resource/helpers_test.go
}, { cName: "cpu overhead and req", pod: getPod("foo", podResources{cpuRequest: "2", cpuOverhead: "5", memoryOverhead: "5"}), resourceName: v1.ResourceCPU, expectedValue: 7000, }, { cName: "mem overhead and req", pod: getPod("foo", podResources{cpuRequest: "2", memoryRequest: "1024", cpuOverhead: "5", memoryOverhead: "5"}), resourceName: v1.ResourceMemory,
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/kuberuntime/kuberuntime_sandbox_linux.go
ExcludeOverhead: true, } req := resourcehelper.PodRequests(pod, opts) lim := resourcehelper.PodLimits(pod, opts) var cpuRequest *resource.Quantity if _, cpuRequestExists := req[v1.ResourceCPU]; cpuRequestExists { cpuRequest = req.Cpu() } return m.calculateLinuxResources(cpuRequest, lim.Cpu(), lim.Memory()) } func (m *kubeGenericRuntimeManager) applySandboxResources(pod *v1.Pod, config *runtimeapi.PodSandboxConfig) error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 09 23:15:53 UTC 2023 - 2K bytes - Viewed (0) -
cluster/addons/kube-proxy/kube-proxy-ds.yaml
containers: - name: kube-proxy image: {{pillar['kube_docker_registry']}}/kube-proxy-{{pillar['host_arch']}}:{{pillar['kube-proxy_docker_tag']}} resources: requests: cpu: {{ cpurequest }} memory: {{ memoryrequest }} command: - /bin/sh - -c - kube-proxy {{cluster_cidr}} --oom-score-adj=-998 {{params}} 1>>/var/log/kube-proxy.log 2>&1 env:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 26 01:01:33 UTC 2023 - 2K bytes - Viewed (0) -
cluster/gce/manifests/cloud-controller-manager.manifest
"hostNetwork": true, "containers":[ { "name": "cloud-controller-manager", "image": "gcr.io/k8s-staging-cloud-provider-gcp/cloud-controller-manager:v30.0.0", "resources": { "requests": { "cpu": "{{cpurequest}}" } }, "args": [ "--log-file=/var/log/cloud-controller-manager.log", "--also-stdout=false", "--redirect-stderr=true", "/cloud-controller-manager", {{params}}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 08:50:12 UTC 2024 - 4K bytes - Viewed (0) -
cluster/gce/manifests/kube-proxy.manifest
containers: - name: kube-proxy image: {{pillar['kube_docker_registry']}}/kube-proxy-{{pillar['host_arch']}}:{{pillar['kube-proxy_docker_tag']}} resources: requests: cpu: {{ cpurequest }} memory: {{ memoryrequest }} command: - /bin/sh - -c - exec kube-proxy {{api_servers_with_port}} {{kubeconfig}} {{cluster_cidr}} --oom-score-adj=-998 {{params}} 1>>/var/log/kube-proxy.log 2>&1
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 11:08:30 UTC 2024 - 2.2K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_manager.go
} if kubeContainerStatus.Resources.CPULimit != nil { currentCPULimit = kubeContainerStatus.Resources.CPULimit.MilliValue() } if kubeContainerStatus.Resources.CPURequest != nil { currentCPURequest = kubeContainerStatus.Resources.CPURequest.MilliValue() } } // Note: cgroup doesn't support memory request today, so we don't compare that. If canAdmitPod called during
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 22 02:01:31 UTC 2024 - 64.7K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/cpu_manager_test.go
return psp.podStatus, psp.found } func makePod(podUID, containerName, cpuRequest, cpuLimit string) *v1.Pod { pod := &v1.Pod{ Spec: v1.PodSpec{ Containers: []v1.Container{ { Resources: v1.ResourceRequirements{ Requests: v1.ResourceList{ v1.ResourceName(v1.ResourceCPU): resource.MustParse(cpuRequest), v1.ResourceName(v1.ResourceMemory): resource.MustParse("1G"), },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 06 13:16:15 UTC 2023 - 42.9K bytes - Viewed (0)