Skip to main content

affinity

Source: base/pkg/kusion_kubernetes/api/core/v1/affinity.k

This is the affinity module in kusion_kubernetes.api.core.v1 package.
This file was generated by the KCL auto-gen tool. DO NOT EDIT.
Editing this file might prove futile when you re-run the KCL auto-gen generate command.

Schema Affinity

Affinity is a group of affinity scheduling rules.

Attributes

Name and DescriptionTypeDefault ValueRequired
nodeAffinity
Describes node affinity scheduling rules for the pod.
NodeAffinityUndefinedoptional
podAffinity
Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
PodAffinityUndefinedoptional
podAntiAffinity
Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
PodAntiAffinityUndefinedoptional