Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 589 for containerB (0.75 sec)

  1. pkg/kubelet/kuberuntime/kuberuntime_container_linux.go

    func (m *kubeGenericRuntimeManager) generateLinuxContainerResources(pod *v1.Pod, container *v1.Container, enforceMemoryQoS bool) *runtimeapi.LinuxContainerResources {
    	// set linux container resources
    	var cpuRequest *resource.Quantity
    	if _, cpuRequestExists := container.Resources.Requests[v1.ResourceCPU]; cpuRequestExists {
    		cpuRequest = container.Resources.Requests.Cpu()
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  2. docs/en/docs/deployment/docker.md

    A container image is comparable to the **program** file and contents, e.g. `python` and some file `main.py`.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 23:43:13 UTC 2024
    - 34K bytes
    - Viewed (0)
  3. pkg/kubelet/stats/cri_stats_provider.go

    // removeTerminatedContainers removes all terminated containers since they should
    // not be used for usage calculations.
    func removeTerminatedContainers(containers []*runtimeapi.Container) []*runtimeapi.Container {
    	containerMap := make(map[containerID][]*runtimeapi.Container)
    	// Sort order by create time
    	sort.Slice(containers, func(i, j int) bool {
    		return containers[i].CreatedAt < containers[j].CreatedAt
    	})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  4. cni/pkg/plugin/plugin.go

    	Kubernetes      Kubernetes `json:"kubernetes"`
    }
    
    // K8sArgs is the valid CNI_ARGS used for Kubernetes
    // The field names need to match exact keys in containerd args for unmarshalling
    // https://github.com/containerd/containerd/blob/ced9b18c231a28990617bc0a4b8ce2e81ee2ffa1/pkg/cri/server/sandbox_run.go#L526-L532
    type K8sArgs struct {
    	types.CommonArgs
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 16:26:35 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/helpers_linux_test.go

    		},
    		"burstable-partial-limits-with-init-containers": {
    			pod: &v1.Pod{
    				Spec: v1.PodSpec{
    					Containers: []v1.Container{
    						{
    							Resources: getResourceRequirements(getResourceList("100m", "100m"), getResourceList("100m", "100Mi")),
    						},
    						{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  6. pkg/kubelet/status/generate.go

    		}
    	}
    
    	for _, container := range spec.Containers {
    		if containerStatus, ok := podutil.GetContainerStatus(containerStatuses, container.Name); ok {
    			if !containerStatus.Ready {
    				unreadyContainers = append(unreadyContainers, container.Name)
    			}
    		} else {
    			unknownContainers = append(unknownContainers, container.Name)
    		}
    	}
    
    	// If all containers are known and succeeded, just return PodCompleted.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 12 15:18:11 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  7. pkg/kubelet/kuberuntime/kuberuntime_gc.go

    				continue
    			}
    		}
    		if err := cgc.manager.removeContainer(ctx, containers[i].id); err != nil {
    			klog.ErrorS(err, "Failed to remove container", "containerID", containers[i].id)
    		}
    	}
    
    	// Assume we removed the containers so that we're not too aggressive.
    	return containers[:numToKeep]
    }
    
    // removeOldestNSandboxes removes the oldest inactive toRemove sandboxes and
    // returns the resulting slice.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  8. pkg/kubelet/container/helpers_test.go

    					},
    					InitContainers: []v1.Container{
    						{Name: "init-container"},
    					},
    				},
    			},
    			haveName:      "init-container",
    			wantContainer: &v1.Container{Name: "init-container"},
    		},
    		{
    			name: "ephemeral container",
    			havePod: &v1.Pod{
    				Spec: v1.PodSpec{
    					Containers: []v1.Container{
    						{Name: "plain-ole-container"},
    					},
    					InitContainers: []v1.Container{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 01:55:46 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  9. pkg/kubelet/status/generate_test.go

    	noInitContainer := &v1.PodSpec{}
    	oneInitContainer := &v1.PodSpec{
    		InitContainers: []v1.Container{
    			{Name: "1234"},
    		},
    		Containers: []v1.Container{
    			{Name: "regular"},
    		},
    	}
    	twoInitContainer := &v1.PodSpec{
    		InitContainers: []v1.Container{
    			{Name: "1234"},
    			{Name: "5678"},
    		},
    		Containers: []v1.Container{
    			{Name: "regular"},
    		},
    	}
    	oneRestartableInitContainer := &v1.PodSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 12 15:18:11 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  10. pkg/api/v1/pod/util_test.go

    	testCases := []struct {
    		name       string
    		containers []v1.Container
    		port       intstr.IntOrString
    		expected   int
    		pass       bool
    	}{{
    		name:       "valid int, no ports",
    		containers: []v1.Container{{}},
    		port:       intstr.FromInt32(93),
    		expected:   93,
    		pass:       true,
    	}, {
    		name: "valid int, with ports",
    		containers: []v1.Container{{Ports: []v1.ContainerPort{{
    			Name:          "",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 11:04:08 UTC 2023
    - 32.1K bytes
    - Viewed (0)
Back to top