Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for PodAntiAffinity (0.27 sec)

  1. pkg/scheduler/testing/wrappers.go

    	}
    	if p.Spec.Affinity.PodAntiAffinity == nil {
    		p.Spec.Affinity.PodAntiAffinity = &v1.PodAntiAffinity{}
    	}
    	term := v1.PodAffinityTerm{LabelSelector: labelSelector, TopologyKey: topologyKey}
    	switch kind {
    	case PodAntiAffinityWithRequiredReq:
    		p.Spec.Affinity.PodAntiAffinity.RequiredDuringSchedulingIgnoredDuringExecution = append(
    			p.Spec.Affinity.PodAntiAffinity.RequiredDuringSchedulingIgnoredDuringExecution,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 42.1K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/types.go

    	if affinity != nil && affinity.PodAntiAffinity != nil {
    		if len(affinity.PodAntiAffinity.RequiredDuringSchedulingIgnoredDuringExecution) != 0 {
    			terms = affinity.PodAntiAffinity.RequiredDuringSchedulingIgnoredDuringExecution
    		}
    		// TODO: Uncomment this block when implement RequiredDuringSchedulingRequiredDuringExecution.
    		// if len(affinity.PodAntiAffinity.RequiredDuringSchedulingRequiredDuringExecution) != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 19:28:17 UTC 2024
    - 36.7K bytes
    - Viewed (0)
  3. pkg/api/pod/util.go

    				}
    			}
    		}
    		if spec.Affinity.PodAntiAffinity != nil {
    			for _, term := range spec.Affinity.PodAntiAffinity.RequiredDuringSchedulingIgnoredDuringExecution {
    				allErrs := apivalidation.ValidatePodAffinityTermSelector(term, false, nil)
    				if len(allErrs) != 0 {
    					return true
    				}
    			}
    			for _, term := range spec.Affinity.PodAntiAffinity.PreferredDuringSchedulingIgnoredDuringExecution {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 41.3K bytes
    - Viewed (0)
  4. pkg/quota/v1/evaluator/core/pods_test.go

    			},
    		},
    		"CrossNamespacePreferredAntiAffinity": {
    			pod: &api.Pod{
    				Spec: api.PodSpec{
    					ActiveDeadlineSeconds: &activeDeadlineSeconds,
    					Affinity: &api.Affinity{
    						PodAntiAffinity: &api.PodAntiAffinity{
    							PreferredDuringSchedulingIgnoredDuringExecution: []api.WeightedPodAffinityTerm{
    								{PodAffinityTerm: api.PodAffinityTerm{LabelSelector: &metav1.LabelSelector{}, NamespaceSelector: &metav1.LabelSelector{}}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  5. manifests/charts/gateways/istio-ingress/templates/deployment.yaml

              optional: true
          {{- end }}
          affinity:
    {{ include "nodeaffinity" (dict "global" .Values.global "nodeSelector" $gateway.nodeSelector) | trim | indent 8 }}
          {{- include "podAntiAffinity" $gateway | indent 6 }}
    {{- if $gateway.tolerations }}
          tolerations:
    {{ toYaml $gateway.tolerations | indent 6 }}
    {{- else if .Values.global.defaultTolerations }}
          tolerations:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 18:16:49 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  6. manifests/charts/gateways/istio-egress/templates/deployment.yaml

              optional: true
          {{- end }}
          affinity:
    {{ include "nodeaffinity" (dict "global" .Values.global "nodeSelector" $gateway.nodeSelector) | trim | indent 8 }}
          {{- include "podAntiAffinity" $gateway | indent 6 }}
    {{- if $gateway.tolerations }}
          tolerations:
    {{ toYaml $gateway.tolerations | indent 6 }}
    {{- else if .Values.global.defaultTolerations }}
          tolerations:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 18:16:49 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/phases/addons/dns/dns_test.go

      template:
        metadata:
          labels:
            k8s-app: kube-dns
        spec:
          priorityClassName: system-cluster-critical
          serviceAccountName: coredns
          affinity:
            podAntiAffinity:
              preferredDuringSchedulingIgnoredDuringExecution:
              - weight: 100
                podAffinityTerm:
                  labelSelector:
                    matchExpressions:
                    - key: k8s-app
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/testdata/HEAD/apps.v1.ReplicaSet.yaml

                    - valuesValue
                  matchLabels:
                    matchLabelsKey: matchLabelsValue
                namespaces:
                - namespacesValue
                topologyKey: topologyKeyValue
            podAntiAffinity:
              preferredDuringSchedulingIgnoredDuringExecution:
              - podAffinityTerm:
                  labelSelector:
                    matchExpressions:
                    - key: keyValue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/testdata/HEAD/apps.v1.DaemonSet.yaml

                    - valuesValue
                  matchLabels:
                    matchLabelsKey: matchLabelsValue
                namespaces:
                - namespacesValue
                topologyKey: topologyKeyValue
            podAntiAffinity:
              preferredDuringSchedulingIgnoredDuringExecution:
              - podAffinityTerm:
                  labelSelector:
                    matchExpressions:
                    - key: keyValue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/testdata/v1.30.0/apps.v1beta2.DaemonSet.yaml

                    - valuesValue
                  matchLabels:
                    matchLabelsKey: matchLabelsValue
                namespaces:
                - namespacesValue
                topologyKey: topologyKeyValue
            podAntiAffinity:
              preferredDuringSchedulingIgnoredDuringExecution:
              - podAffinityTerm:
                  labelSelector:
                    matchExpressions:
                    - key: keyValue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 35K bytes
    - Viewed (0)
Back to top