class K8S::Api::Core::V1::Affinity
- K8S::Api::Core::V1::Affinity
- Reference
- Object
Overview
Affinity is a group of affinity scheduling rules.
Included Modules
- JSON::Serializable
- YAML::Serializable
Defined in:
versions/v1.23/api/core/v1/affinity.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, node_affinity : Api::Core::V1::NodeAffinity? = nil, pod_affinity : Api::Core::V1::PodAffinity? = nil, pod_anti_affinity : Api::Core::V1::PodAntiAffinity? = nil)
Instance Method Summary
- #node_affinity : Api::Core::V1::NodeAffinity?
- #node_affinity=(node_affinity : Api::Core::V1::NodeAffinity?)
- #pod_affinity : Api::Core::V1::PodAffinity?
- #pod_affinity=(pod_affinity : Api::Core::V1::PodAffinity?)
- #pod_anti_affinity : Api::Core::V1::PodAntiAffinity?
- #pod_anti_affinity=(pod_anti_affinity : Api::Core::V1::PodAntiAffinity?)
Constructor Detail
def self.new(*, node_affinity : Api::Core::V1::NodeAffinity? = nil, pod_affinity : Api::Core::V1::PodAffinity? = nil, pod_anti_affinity : Api::Core::V1::PodAntiAffinity? = nil)
#