weightedPodAffinityTerm

The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)

Constuctors

Functions
  • withWeight

    withWeight(weight)
    

    weight associated with matching the corresponding podAffinityTerm, in the range 1-100.


Mixins
  • podAffinityTerm

    Required. A pod affinity term, associated with the corresponding weight.


    Functions
    • mixinInstance

      mixinInstance(podAffinityTerm)
      


    • withNamespaces

      withNamespaces(namespaces)
      

      namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means “this pod’s namespace”


    • withNamespacesMixin

      withNamespacesMixin(namespaces)
      

      namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means “this pod’s namespace”


    • withTopologyKey

      withTopologyKey(topologyKey)
      

      This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.


    Mixins
    • labelSelector

      A label query over a set of resources, in this case pods.


      Functions
      • mixinInstance

        mixinInstance(labelSelector)
        


      • withMatchExpressions

        withMatchExpressions(matchExpressions)
        

        matchExpressions is a list of label selector requirements. The requirements are ANDed.

        withMatchExpressions takes an array of type matchExpressionsType. You can create an instance of matchExpressionsType with hidden.meta.v1.labelSelectorRequirement.new().

        see hidden.meta.v1.labelSelectorRequirement


      • withMatchExpressionsMixin

        withMatchExpressionsMixin(matchExpressions)
        

        matchExpressions is a list of label selector requirements. The requirements are ANDed.

        withMatchExpressionsMixin takes an array of type matchExpressionsType. You can create an instance of matchExpressionsType with hidden.meta.v1.labelSelectorRequirement.new().

        see hidden.meta.v1.labelSelectorRequirement


      • withMatchLabels

        withMatchLabels(matchLabels)
        

        matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is “key”, the operator is “In”, and the values array contains only “value”. The requirements are ANDed.


      • withMatchLabelsMixin

        withMatchLabelsMixin(matchLabels)
        

        matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is “key”, the operator is “In”, and the values array contains only “value”. The requirements are ANDed.