Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 189 for TopologyKey (0.21 sec)

  1. pkg/scheduler/framework/plugins/podtopologyspread/common.go

    				}
    				if len(matchLabels) > 0 {
    					selector = mergeLabelSetWithSelector(matchLabels, selector)
    				}
    			}
    
    			tsc := topologySpreadConstraint{
    				MaxSkew:            c.MaxSkew,
    				TopologyKey:        c.TopologyKey,
    				Selector:           selector,
    				MinDomains:         ptr.Deref(c.MinDomains, 1),   // If MinDomains is nil, we treat MinDomains as 1.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 10:42:29 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/interpodaffinity/filtering.go

    	if len(state.existingAntiAffinityCounts) > 0 {
    		// Iterate over topology pairs to get any of the pods being affected by
    		// the scheduled pod anti-affinity terms
    		for topologyKey, topologyValue := range nodeInfo.Node().Labels {
    			tp := topologyPair{key: topologyKey, value: topologyValue}
    			if state.existingAntiAffinityCounts[tp] > 0 {
    				return false
    			}
    		}
    	}
    	return true
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 01 10:24:54 UTC 2023
    - 14.6K bytes
    - Viewed (0)
  3. pkg/scheduler/apis/config/validation/validation_pluginargs_test.go

    			args: &config.PodTopologySpreadArgs{
    				DefaultConstraints: []v1.TopologySpreadConstraint{
    					{
    						MaxSkew:           1,
    						TopologyKey:       "node",
    						WhenUnsatisfiable: v1.DoNotSchedule,
    					},
    					{
    						MaxSkew:           2,
    						TopologyKey:       "zone",
    						WhenUnsatisfiable: v1.ScheduleAnyway,
    					},
    				},
    				DefaultingType: config.ListDefaulting,
    			},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/podtopologyspread/filtering_test.go

    			pod:  st.MakePod().Name("p").Label("foo", "bar").Label("baz", "kar").Obj(),
    			defaultConstraints: []v1.TopologySpreadConstraint{
    				{MaxSkew: 3, TopologyKey: "node", WhenUnsatisfiable: v1.DoNotSchedule},
    				{MaxSkew: 2, TopologyKey: "node", WhenUnsatisfiable: v1.ScheduleAnyway},
    				{MaxSkew: 5, TopologyKey: "rack", WhenUnsatisfiable: v1.DoNotSchedule},
    			},
    			objs: []runtime.Object{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 10:42:29 UTC 2024
    - 143.1K bytes
    - Viewed (0)
  5. pkg/scheduler/apis/config/validation/validation_pluginargs.go

    	c := &constraints[idx]
    	for i := range constraints[:idx] {
    		other := &constraints[i]
    		if c.TopologyKey == other.TopologyKey && c.WhenUnsatisfiable == other.WhenUnsatisfiable {
    			return field.Duplicate(path.Index(idx), fmt.Sprintf("{%v, %v}", c.TopologyKey, c.WhenUnsatisfiable))
    		}
    	}
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 05 09:29:49 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/interpodaffinity/plugin_test.go

    			pod:          st.MakePod().Name("p").PodAffinityIn("service", "zone", []string{"securityscan", "value2"}, st.PodAffinityWithRequiredReq).Obj(),
    			newNode:      st.MakeNode().Name("node-a").Label("zone", "zone1").Obj(),
    			expectedHint: framework.Queue,
    		},
    		{
    			name:         "add a new node with matched pod anti-affinity topologyKey",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 03:08:44 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  7. hack/testdata/rollingupdate-daemonset-rv2.yaml

                - labelSelector:
                    matchExpressions:
                    - key: "service"
                      operator: "In"
                      values: ["bind"]
                  topologyKey: "kubernetes.io/hostname"
                  namespaces: []
          containers:
          - name: kubernetes-pause
            image: registry.k8s.io/pause:latest
          - name: app
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 31 14:16:53 UTC 2022
    - 802 bytes
    - Viewed (0)
  8. hack/testdata/rollingupdate-daemonset.yaml

                - labelSelector:
                    matchExpressions:
                    - key: "service"
                      operator: "In"
                      values: ["bind"]
                  topologyKey: "kubernetes.io/hostname"
                  namespaces: []
          containers:
          - name: kubernetes-pause
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 31 14:16:53 UTC 2022
    - 735 bytes
    - Viewed (0)
  9. pkg/scheduler/framework/plugins/interpodaffinity/scoring_test.go

    								{
    									Key:      "security",
    									Operator: metav1.LabelSelectorOpIn,
    									Values:   []string{"S1"},
    								},
    							},
    						},
    						TopologyKey: "region",
    					},
    				},
    			},
    		},
    	}
    	stayWithS2InRegion := &v1.Affinity{
    		PodAffinity: &v1.PodAffinity{
    			PreferredDuringSchedulingIgnoredDuringExecution: []v1.WeightedPodAffinityTerm{
    				{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 44.8K bytes
    - Viewed (0)
  10. pkg/api/pod/warnings_test.go

    						{
    							TopologyKey:   `foo`,
    							LabelSelector: &metav1.LabelSelector{},
    						},
    						{
    							TopologyKey:   `beta.kubernetes.io/arch`,
    							LabelSelector: &metav1.LabelSelector{},
    						},
    						{
    							TopologyKey:   `beta.kubernetes.io/os`,
    							LabelSelector: &metav1.LabelSelector{},
    						},
    						{
    							TopologyKey:   `failure-domain.beta.kubernetes.io/region`,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 17:51:48 UTC 2024
    - 42.1K bytes
    - Viewed (0)
Back to top