PodAffinityTerm

com.coralogix.zio.k8s.model.core.v1.PodAffinityTerm
See thePodAffinityTerm companion object
case class PodAffinityTerm(labelSelector: Optional[LabelSelector], namespaceSelector: Optional[LabelSelector], namespaces: Optional[Vector[String]], topologyKey: String)

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 matches that of any node on which a pod of the set of pods is running

Value parameters

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.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Gets labelSelector.

Gets labelSelector.

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

Attributes

Gets namespaceSelector.

Gets namespaceSelector.

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

Attributes

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"

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.

Attributes

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.

Attributes

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product