Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 44 for sandboxes (0.19 sec)

  1. pkg/kubelet/kuberuntime/kuberuntime_manager_test.go

    	assert.NoError(t, result.Error())
    	assert.Equal(t, 2, len(fakeRuntime.Containers))
    	assert.Equal(t, 2, len(fakeImage.Images))
    	assert.Equal(t, 1, len(fakeRuntime.Sandboxes))
    	for _, sandbox := range fakeRuntime.Sandboxes {
    		assert.Equal(t, runtimeapi.PodSandboxState_SANDBOX_READY, sandbox.State)
    	}
    	for _, c := range fakeRuntime.Containers {
    		assert.Equal(t, runtimeapi.ContainerState_CONTAINER_RUNNING, c.State)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 96K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/util/util_test.go

    		expectedChanged   bool
    		expectedAttempt   uint32
    		expectedSandboxID string
    	}{
    		"Pod with no existing sandboxes": {
    			pod:               &v1.Pod{},
    			status:            &kubecontainer.PodStatus{},
    			expectedChanged:   true,
    			expectedAttempt:   0,
    			expectedSandboxID: "",
    		},
    		"Pod with multiple ready sandbox statuses": {
    			pod: &v1.Pod{},
    			status: &kubecontainer.PodStatus{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 13 23:14:48 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. pkg/kubelet/kuberuntime/kuberuntime_manager.go

    	KillPod bool
    	// Whether need to create a new sandbox. If needed to kill pod and create
    	// a new pod sandbox, all init containers need to be purged (i.e., removed).
    	CreateSandbox bool
    	// The id of existing sandbox. It is used for starting containers in ContainersToStart.
    	SandboxID string
    	// The attempt number of creating sandboxes for the pod.
    	Attempt uint32
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  4. pkg/kubelet/pleg/evented.go

    	// increase running pod count when cache doesn't contain podID
    	var sandboxId string
    	for _, sandbox := range podStatus.SandboxStatuses {
    		sandboxId = sandbox.Id
    		// pod must contain only one sandbox
    		break
    	}
    
    	for _, containerStatus := range podStatus.ContainerStatuses {
    		if containerStatus.ID.ID == sandboxId {
    			if containerStatus.State == kubecontainer.ContainerStateRunning {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 10:46:06 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  5. pkg/kubelet/stats/cri_stats_provider_test.go

    		// Terminated pod sandbox
    		sandbox4        = makeFakePodSandbox("sandbox1-name", "sandbox1-uid", "sandbox1-ns", true)
    		container6      = makeFakeContainer(sandbox4, cName6, 0, true)
    		containerStats6 = makeFakeContainerStats(container6, imageFsMountpoint)
    
    		// Terminated pod
    		sandbox5        = makeFakePodSandbox("sandbox1-name", "sandbox5-uid", "sandbox1-ns", true)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  6. pkg/kubelet/kuberuntime/helpers.go

    		State:               toKubeContainerState(c.State),
    	}, nil
    }
    
    // sandboxToKubeContainer converts runtimeapi.PodSandbox to kubecontainer.Container.
    // This is only needed because we need to return sandboxes as if they were
    // kubecontainer.Containers to avoid substantial changes to PLEG.
    // TODO: Remove this once it becomes obsolete.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 12K bytes
    - Viewed (0)
  7. pkg/kubelet/metrics/metrics.go

    	// It is used to expose the kubelet internal state: how many pods have running containers in the container runtime, and mainly for debugging purpose.
    	RunningPodCount = metrics.NewGauge(
    		&metrics.GaugeOpts{
    			Subsystem:      KubeletSubsystem,
    			Name:           RunningPodsKey,
    			Help:           "Number of pods that have a running pod sandbox",
    			StabilityLevel: metrics.ALPHA,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 22 15:13:25 UTC 2024
    - 45.6K bytes
    - Viewed (0)
  8. pkg/kubelet/stats/cri_stats_provider.go

    	}
    
    	// Creates pod sandbox map between the pod sandbox ID and the PodSandbox object.
    	podSandboxMap := make(map[string]*runtimeapi.PodSandbox)
    	podSandboxes, err := p.runtimeService.ListPodSandbox(ctx, &runtimeapi.PodSandboxFilter{})
    	if err != nil {
    		return nil, nil, fmt.Errorf("failed to list all pod sandboxes: %v", err)
    	}
    	podSandboxes = removeTerminatedPods(podSandboxes)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  9. pkg/kubelet/kubelet_pods.go

    }
    
    // killPod instructs the container runtime to kill the pod. This method requires that
    // the pod status contains the result of the last syncPod, otherwise it may fail to
    // terminate newly created containers and sandboxes.
    func (kl *Kubelet) killPod(ctx context.Context, pod *v1.Pod, p kubecontainer.Pod, gracePeriodOverride *int64) error {
    	// Call the container runtime KillPod method which stops all known running containers of the pod
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  10. tools/istio-iptables/pkg/dependencies/implementation_linux_test.go

    	original := file.AsStringOrFail(t, "/etc/nsswitch.conf")
    	var sandboxed string
    
    	originalNetNS, err := netns.Get()
    	assert.NoError(t, err)
    	var sandboxedNetNS netns.NsHandle
    
    	// Due to unshare-go imports above, this can run
    	assert.NoError(t, runInSandbox("", func() error {
    		// We should have overwritten this file with /dev/null
    		sandboxed = file.AsStringOrFail(t, "/etc/nsswitch.conf")
    		sandboxedNetNS, err = netns.Get()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 26 20:05:40 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top