Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 335 for containerId (0.18 sec)

  1. pkg/kubelet/kubelet_pods.go

    				cID = lastState.Terminated.ContainerID
    			} else {
    				return kubecontainer.ContainerID{}, fmt.Errorf("container %q in pod %q is terminated", containerName, podName)
    			}
    		} else {
    			cID = terminated.ContainerID
    		}
    
    	case lastState.Terminated != nil:
    		if lastState.Terminated.ContainerID == "" {
    			return kubecontainer.ContainerID{}, fmt.Errorf("container %q in pod %q is terminated", containerName, podName)
    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/pleg/evented.go

    		klog.V(4).InfoS("Received Container Stopped Event", "event", event.String())
    	case runtimeapi.ContainerEventType_CONTAINER_CREATED_EVENT:
    		// We only need to update the pod status on container create.
    		// But we don't have to generate any PodLifeCycleEvent. Container creation related
    		// PodLifeCycleEvent is ignored by the existing Generic PLEG as well.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 10:46:06 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  3. pkg/kubelet/server/server_test.go

    }
    
    func setPodByNameFunc(fw *serverTestFramework, namespace, pod, container string) {
    	fw.fakeKubelet.podByNameFunc = func(namespace, name string) (*v1.Pod, bool) {
    		return &v1.Pod{
    			ObjectMeta: metav1.ObjectMeta{
    				Namespace: namespace,
    				Name:      pod,
    			},
    			Spec: v1.PodSpec{
    				Containers: []v1.Container{
    					{
    						Name: container,
    					},
    				},
    			},
    		}, true
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  4. pkg/kubelet/kuberuntime/kuberuntime_container_unsupported.go

    	kubecontainer "k8s.io/kubernetes/pkg/kubelet/container"
    )
    
    // applyPlatformSpecificContainerConfig applies platform specific configurations to runtimeapi.ContainerConfig.
    func (m *kubeGenericRuntimeManager) applyPlatformSpecificContainerConfig(config *runtimeapi.ContainerConfig, container *v1.Container, pod *v1.Pod, uid *int64, username string, nsTarget *kubecontainer.ContainerID) error {
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  5. pkg/kubelet/pleg/evented_test.go

    	// stop sandbox containers for first 2 pods
    	for _, podStatus := range podStatuses[:2] {
    		podId := string(podStatus.ID)
    		newPodStatus := kubecontainer.PodStatus{
    			ID: podStatus.ID,
    			SandboxStatuses: []*v1.PodSandboxStatus{
    				{Id: podId},
    			},
    			ContainerStatuses: []*kubecontainer.Status{
    				// update state to container exited
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 01 07:45:05 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  6. pkg/kubelet/prober/prober_manager.go

    		return result == results.Success
    	}
    
    	// if there is a startup probe which hasn't run yet, the container is not
    	// started.
    	if _, exists := m.getWorker(pod.UID, containerStatus.Name, startup); exists {
    		return false
    	}
    
    	// there is no startup probe, so the container is started.
    	return true
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 07 22:26:12 UTC 2023
    - 11K bytes
    - Viewed (0)
  7. pkg/kubelet/stats/cadvisor_stats_provider.go

    		// adding it to podStats.Containers.
    		containerName := kubetypes.GetContainerName(cinfo.Spec.Labels)
    		if containerName == kubetypes.PodInfraContainerName {
    			// Special case for infrastructure container which is hidden from
    			// the user and has network stats.
    			podStats.StartTime = metav1.NewTime(cinfo.Spec.CreationTime)
    		} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 16 13:34:22 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  8. pkg/kubelet/kubelet_pods_test.go

    		InitContainers: []v1.Container{
    			{Name: "containerX"},
    		},
    		Containers: []v1.Container{
    			{Name: "containerA"},
    			{Name: "containerB"},
    		},
    		RestartPolicy: v1.RestartPolicyAlways,
    	}
    
    	tests := []struct {
    		pod    *v1.Pod
    		status v1.PodPhase
    		test   string
    	}{
    		{&v1.Pod{Spec: desiredState, Status: v1.PodStatus{}}, v1.PodPending, "empty, waiting"},
    		{
    			&v1.Pod{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  9. pkg/kubelet/prober/worker_test.go

    		expectResult(t, w, results.Failure, msg)
    		if !w.onHold {
    			t.Errorf("Prober should be on hold due to %s check failure", probeType)
    		}
    
    		// Set a new container ID to lift the hold. The next probe will succeed.
    		status.ContainerStatuses[0].ContainerID = "test://newCont_ID"
    		m.statusManager.SetPodStatus(w.pod, status)
    		msg = "hold lifted"
    		expectContinue(t, w, w.doProbe(ctx), msg)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 07 23:48:10 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  10. pkg/kubelet/container/helpers.go

    	utilsnet "k8s.io/utils/net"
    )
    
    // HandlerRunner runs a lifecycle handler for a container.
    type HandlerRunner interface {
    	Run(ctx context.Context, containerID ContainerID, pod *v1.Pod, container *v1.Container, handler *v1.LifecycleHandler) (string, error)
    }
    
    // RuntimeHelper wraps kubelet to make container runtime
    // able to get necessary informations like the RunContainerOptions, DNS settings, Host IP.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.3K bytes
    - Viewed (0)
Back to top