Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for MaxSkew (0.12 sec)

  1. pkg/scheduler/apis/config/validation/validation_pluginargs_test.go

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

    			matchNum = tpCount
    		}
    		skew := matchNum + selfMatchNum - minMatchNum
    		if skew > int(c.MaxSkew) {
    			logger.V(5).Info("Node failed spreadConstraint: matchNum + selfMatchNum - minMatchNum > maxSkew", "node", klog.KObj(node), "topologyKey", tpKey, "matchNum", matchNum, "selfMatchNum", selfMatchNum, "minMatchNum", minMatchNum, "maxSkew", c.MaxSkew)
    			return framework.NewStatus(framework.Unschedulable, ErrReasonConstraintsNotMatch)
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 10:42:29 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/podtopologyspread/plugin.go

    )
    
    var systemDefaultConstraints = []v1.TopologySpreadConstraint{
    	{
    		TopologyKey:       v1.LabelHostname,
    		WhenUnsatisfiable: v1.ScheduleAnyway,
    		MaxSkew:           3,
    	},
    	{
    		TopologyKey:       v1.LabelTopologyZone,
    		WhenUnsatisfiable: v1.ScheduleAnyway,
    		MaxSkew:           5,
    	},
    }
    
    // PodTopologySpread is a plugin that ensures pod's topologySpreadConstraints is satisfied.
    type PodTopologySpread struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 16 14:13:06 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. pkg/scheduler/apis/config/v1/defaults_test.go

    					{
    						TopologyKey:       "planet",
    						WhenUnsatisfiable: v1.DoNotSchedule,
    						MaxSkew:           2,
    					},
    				},
    			},
    			want: &configv1.PodTopologySpreadArgs{
    				DefaultConstraints: []v1.TopologySpreadConstraint{
    					{
    						TopologyKey:       "planet",
    						WhenUnsatisfiable: v1.DoNotSchedule,
    						MaxSkew:           2,
    					},
    				},
    				DefaultingType: configv1.SystemDefaulting,
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 15:03:04 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  5. pkg/scheduler/testing/wrappers.go

    // into the inner pod.
    func (p *PodWrapper) SpreadConstraint(maxSkew int, tpKey string, mode v1.UnsatisfiableConstraintAction, selector *metav1.LabelSelector, minDomains *int32, nodeAffinityPolicy, nodeTaintsPolicy *v1.NodeInclusionPolicy, matchLabelKeys []string) *PodWrapper {
    	c := v1.TopologySpreadConstraint{
    		MaxSkew:            int32(maxSkew),
    		TopologyKey:        tpKey,
    		WhenUnsatisfiable:  mode,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 42.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/testdata/HEAD/apps.v1.ReplicaSet.yaml

                values:
                - valuesValue
              matchLabels:
                matchLabelsKey: matchLabelsValue
            matchLabelKeys:
            - matchLabelKeysValue
            maxSkew: 1
            minDomains: 5
            nodeAffinityPolicy: nodeAffinityPolicyValue
            nodeTaintsPolicy: nodeTaintsPolicyValue
            topologyKey: topologyKeyValue
            whenUnsatisfiable: whenUnsatisfiableValue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/testdata/HEAD/apps.v1.DaemonSet.yaml

                values:
                - valuesValue
              matchLabels:
                matchLabelsKey: matchLabelsValue
            matchLabelKeys:
            - matchLabelKeysValue
            maxSkew: 1
            minDomains: 5
            nodeAffinityPolicy: nodeAffinityPolicyValue
            nodeTaintsPolicy: nodeTaintsPolicyValue
            topologyKey: topologyKeyValue
            whenUnsatisfiable: whenUnsatisfiableValue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/testdata/v1.30.0/apps.v1beta2.DaemonSet.yaml

                values:
                - valuesValue
              matchLabels:
                matchLabelsKey: matchLabelsValue
            matchLabelKeys:
            - matchLabelKeysValue
            maxSkew: 1
            minDomains: 5
            nodeAffinityPolicy: nodeAffinityPolicyValue
            nodeTaintsPolicy: nodeTaintsPolicyValue
            topologyKey: topologyKeyValue
            whenUnsatisfiable: whenUnsatisfiableValue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 35K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/testdata/HEAD/batch.v1.CronJob.yaml

                    values:
                    - valuesValue
                  matchLabels:
                    matchLabelsKey: matchLabelsValue
                matchLabelKeys:
                - matchLabelKeysValue
                maxSkew: 1
                minDomains: 5
                nodeAffinityPolicy: nodeAffinityPolicyValue
                nodeTaintsPolicy: nodeTaintsPolicyValue
                topologyKey: topologyKeyValue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 41.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/testdata/v1.30.0/batch.v1.Job.yaml

                values:
                - valuesValue
              matchLabels:
                matchLabelsKey: matchLabelsValue
            matchLabelKeys:
            - matchLabelKeysValue
            maxSkew: 1
            minDomains: 5
            nodeAffinityPolicy: nodeAffinityPolicyValue
            nodeTaintsPolicy: nodeTaintsPolicyValue
            topologyKey: topologyKeyValue
            whenUnsatisfiable: whenUnsatisfiableValue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 35.6K bytes
    - Viewed (0)
Back to top