Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key
Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key
- Value Params
- namespaces
namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace"
- 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.
- Companion
- object
Value members
Concrete methods
Gets labelSelector.
Gets labelSelector.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace"
namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace"
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
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.
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.
This effect always succeeds, it is safe to use the field topologyKey directly.