Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for AllocatedResources (0.49 sec)

  1. pkg/kubelet/kubelet_pods.go

    		// AllocatedResources values come from checkpoint. It is the source-of-truth.
    		found := false
    		status.AllocatedResources, found = kl.statusManager.GetContainerResourceAllocation(string(pod.UID), cName)
    		if !(container.Resources.Requests == nil && container.Resources.Limits == nil) && !found {
    			// Log error and fallback to AllocatedResources in oldStatus if it exists
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet.go

    // updateContainerResourceAllocation updates AllocatedResources values
    // (for cpu & memory) from checkpoint store
    func (kl *Kubelet) updateContainerResourceAllocation(pod *v1.Pod) {
    	for _, c := range pod.Spec.Containers {
    		allocatedResources, found := kl.statusManager.GetContainerResourceAllocation(string(pod.UID), c.Name)
    		if c.Resources.Requests != nil && found {
    			if _, ok := allocatedResources[v1.ResourceCPU]; ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
  3. pkg/kubelet/kubelet_test.go

    		if tc.existingPodAllocation != nil {
    			// when kubelet restarts, AllocatedResources has already existed before adding pod
    			err := kubelet.statusManager.SetPodAllocation(tc.existingPodAllocation)
    			if err != nil {
    				t.Fatalf("failed to set pod allocation: %v", err)
    			}
    		}
    		kubelet.HandlePodAdditions([]*v1.Pod{tc.pod})
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  4. pkg/kubelet/kubelet_pods_test.go

    						{
    							Name:               testContainerName,
    							Resources:          &v1.ResourceRequirements{Limits: CPU1AndMem1GAndStorage2G, Requests: CPU1AndMem1GAndStorage2G},
    							AllocatedResources: CPU1AndMem1GAndStorage2GAndCustomResource,
    						},
    					},
    					Resize: "InProgress",
    				},
    			},
    		},
    		{
    			name: "cpu/memory resource in ResourcesAllocated, resize should be null",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/types.go

    	// the actual resource requests for this node, but is used to avoid scheduling
    	// many zero-request pods onto one node.
    	NonZeroRequested *Resource
    	// We store allocatedResources (which is Node.Status.Allocatable.*) explicitly
    	// as int64, to avoid conversions and accessing map.
    	Allocatable *Resource
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 19:28:17 UTC 2024
    - 36.7K bytes
    - Viewed (0)
  6. pkg/generated/openapi/zz_generated.openapi.go

    used.\n\nCapacity reported here may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity.\n\nA...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 18:37:07 UTC 2024
    - 3M bytes
    - Viewed (0)
  7. api/openapi-spec/swagger.json

    used.\n\nCapacity reported here may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity.\n\nA...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 18:37:07 UTC 2024
    - 3.1M bytes
    - Viewed (0)
  8. CHANGELOG/CHANGELOG-1.27.md

      - Added `resizePolicy` for containers in a pod to allow users control over how their containers are resized.
      - Added `allocatedResources` field to container status in pod status that describes the node resources allocated to a pod.
      - Added `resources` field to container status that reports actual resources applied to running containers.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 23:01:06 UTC 2024
    - 455.3K bytes
    - Viewed (0)
Back to top