Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for MaxContainers (0.31 sec)

  1. pkg/kubelet/kuberuntime/kuberuntime_gc.go

    	}
    
    	// Enforce max total number of containers.
    	if gcPolicy.MaxContainers >= 0 && evictUnits.NumContainers() > gcPolicy.MaxContainers {
    		// Leave an equal number of containers per evict unit (min: 1).
    		numContainersPerEvictUnit := gcPolicy.MaxContainers / evictUnits.NumEvictUnits()
    		if numContainersPerEvictUnit < 1 {
    			numContainersPerEvictUnit = 1
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/kuberuntime_gc_test.go

    	assert.NoError(t, err)
    
    	podStateProvider := m.containerGC.podStateProvider.(*fakePodStateProvider)
    	defaultGCPolicy := kubecontainer.GCPolicy{MinAge: time.Hour, MaxPerPodContainer: 2, MaxContainers: 6}
    
    	for _, test := range []struct {
    		description          string                  // description of the test case
    		containers           []containerTemplate     // templates of containers
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  3. pkg/kubelet/container/container_gc.go

    	// allowed to have, less than zero for no limit.
    	MaxPerPodContainer int
    
    	// Max number of total dead containers, less than zero for no limit.
    	MaxContainers int
    }
    
    // GC manages garbage collection of dead containers.
    //
    // Implementation is thread-compatible.
    type GC interface {
    	// Garbage collect containers.
    	GarbageCollect(ctx context.Context) error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  4. pkg/kubelet/kubelet_test.go

    	}
    	kubelet.containerLogManager = logs.NewStubContainerLogManager()
    	containerGCPolicy := kubecontainer.GCPolicy{
    		MinAge:             time.Duration(0),
    		MaxPerPodContainer: 1,
    		MaxContainers:      -1,
    	}
    	containerGC, err := kubecontainer.NewContainerGC(fakeRuntime, containerGCPolicy, kubelet.sourcesReady)
    	assert.NoError(t, err)
    	kubelet.containerGC = containerGC
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  5. pkg/kubelet/kubelet.go

    		if err != nil {
    			return nil, err
    		}
    	}
    
    	containerGCPolicy := kubecontainer.GCPolicy{
    		MinAge:             minimumGCAge.Duration,
    		MaxPerPodContainer: int(maxPerPodContainerCount),
    		MaxContainers:      int(maxContainerCount),
    	}
    
    	daemonEndpoints := &v1.NodeDaemonEndpoints{
    		KubeletEndpoint: v1.DaemonEndpoint{Port: kubeCfg.Port},
    	}
    
    	imageGCPolicy := images.ImageGCPolicy{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
Back to top