case class PodAffinityTerm(labelSelector: Optional[LabelSelector] = Optional.Absent, namespaceSelector: Optional[LabelSelector] = Optional.Absent, namespaces: Optional[Vector[String]] = Optional.Absent, topologyKey: String) extends Product with Serializable
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 <topologyKey> matches that of any node on which a pod of the set of pods is running
- namespaces
namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector 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.
- Alphabetic
- By Inheritance
- PodAffinityTerm
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
PodAffinityTerm(labelSelector: Optional[LabelSelector] = Optional.Absent, namespaceSelector: Optional[LabelSelector] = Optional.Absent, namespaces: Optional[Vector[String]] = Optional.Absent, topologyKey: String)
- namespaces
namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector 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.
Value Members
-
def
getLabelSelector: IO[K8sFailure, LabelSelector]
Gets labelSelector.
Gets labelSelector.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getNamespaceSelector: IO[K8sFailure, LabelSelector]
Gets namespaceSelector.
Gets namespaceSelector.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getNamespaces: IO[K8sFailure, Vector[String]]
namespaces specifies a static list of namespace names that the term applies to.
namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace"
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getTopologyKey: IO[K8sFailure, String]
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.
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.
- val labelSelector: Optional[LabelSelector]
- val namespaceSelector: Optional[LabelSelector]
- val namespaces: Optional[Vector[String]]
- val topologyKey: String