Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for InitContainer (0.2 sec)

  1. pkg/kube/inject/webhook.go

    	if !tproxy && initContainer.Name == ValidationContainerName {
    		if initContainer.SecurityContext == nil {
    			initContainer.SecurityContext = &corev1.SecurityContext{}
    		}
    		if userContainer.SecurityContext.RunAsUser != nil {
    			initContainer.SecurityContext.RunAsUser = userContainer.SecurityContext.RunAsUser
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 17:59:39 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/memorymanager/policy_static.go

    				}
    			}
    
    			s.SetMemoryBlocks(podUID, initContainer.Name, initContainerBlocks)
    		}
    	}
    }
    
    func isRegularInitContainer(pod *v1.Pod, container *v1.Container) bool {
    	for _, initContainer := range pod.Spec.InitContainers {
    		if initContainer.Name == container.Name {
    			return !types.IsRestartableInitContainer(&initContainer)
    		}
    	}
    
    	return false
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Nov 12 07:34:55 UTC 2023
    - 34K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/memorymanager/memory_manager.go

    	for _, initContainer := range pod.Spec.InitContainers {
    		if initContainer.Name == container.Name {
    			break
    		}
    
    		// Since a restartable init container remains running for the full
    		// duration of the pod's lifecycle, we should not remove it from the
    		// memory manager state.
    		if types.IsRestartableInitContainer(&initContainer) {
    			continue
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 00:50:45 UTC 2023
    - 17.1K bytes
    - Viewed (1)
  4. pkg/kubelet/status/generate.go

    		}
    	}
    
    	return v1.PodCondition{
    		Type:   v1.PodReady,
    		Status: v1.ConditionTrue,
    	}
    }
    
    func isInitContainerInitialized(initContainer *v1.Container, containerStatus *v1.ContainerStatus) bool {
    	if kubetypes.IsRestartableInitContainer(initContainer) {
    		if containerStatus.Started == nil || !*containerStatus.Started {
    			return false
    		}
    	} else { // regular init container
    		if !containerStatus.Ready {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 12 15:18:11 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  5. pkg/kubelet/prober/prober_manager.go

    		podStatus.InitContainerStatuses[i].Started = &started
    
    		initContainer, ok := kubeutil.GetContainerByIndex(pod.Spec.InitContainers, podStatus.InitContainerStatuses, i)
    		if !ok {
    			klog.V(4).InfoS("Mismatch between pod spec and status, likely programmer error", "pod", klog.KObj(pod), "containerName", c.Name)
    			continue
    		}
    		if !kubetypes.IsRestartableInitContainer(&initContainer) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 07 22:26:12 UTC 2023
    - 11K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/cpumanager/policy_static.go

    	}
    	// Check if the container is an init container.
    	// If so, add its cpuset to the cpuset of reusable CPUs for any new allocations.
    	for _, initContainer := range pod.Spec.InitContainers {
    		if container.Name == initContainer.Name {
    			if types.IsRestartableInitContainer(&initContainer) {
    				// If the container is a restartable init container, we should not
    				// reuse its cpuset, as a restartable init container can run with
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 06 13:16:15 UTC 2023
    - 28.8K bytes
    - Viewed (0)
  7. pkg/test/kube/dump.go

    	return string(n)
    }
    
    const (
    	maxCoreDumpedPods                      = 5
    	proxyContainer      wellKnownContainer = "istio-proxy"
    	discoveryContainer  wellKnownContainer = "discovery"
    	initContainer       wellKnownContainer = "istio-init"
    	validationContainer wellKnownContainer = "istio-validation"
    )
    
    var coreDumpedPods = atomic.NewInt32(0)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/devicemanager/manager.go

    	// ever change those semantics, this logic will need to be amended.
    	for _, initContainer := range pod.Spec.InitContainers {
    		if container.Name == initContainer.Name {
    			if err := m.allocateContainerResources(pod, container, m.devicesToReuse[string(pod.UID)]); err != nil {
    				return err
    			}
    			if !types.IsRestartableInitContainer(&initContainer) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 12:01:56 UTC 2024
    - 43K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/cpumanager/cpu_manager_test.go

    			InitContainers: []v1.Container{},
    			Containers:     []v1.Container{},
    		},
    	}
    
    	for i, cpu := range initCPUs {
    		pod.Spec.InitContainers = append(pod.Spec.InitContainers, v1.Container{
    			Name: "initContainer-" + strconv.Itoa(i),
    			Resources: v1.ResourceRequirements{
    				Requests: v1.ResourceList{
    					v1.ResourceName(v1.ResourceCPU):    resource.MustParse(cpu.request),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 06 13:16:15 UTC 2023
    - 42.9K bytes
    - Viewed (0)
  10. cni/README.md

            - Pods have annotation `sidecar.istio.io/inject` set to `false` or has no key `sidecar.istio.io/status` in annotations
            - Pod has `istio-init` initContainer - this indicates a pod running its own injection setup.
    1. Return prevResult
    
    ## Troubleshooting
    
    ### Collecting Logs
    
    #### Using `istioctl`/helm
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 03 19:29:42 UTC 2024
    - 12.3K bytes
    - Viewed (0)
Back to top