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 Description | Type | Default Value | Required |
---|---|---|---|
nodeAffinity Describes node affinity scheduling rules for the pod. | NodeAffinity | Undefined | optional |
podAffinity Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). | PodAffinity | Undefined | optional |
podAntiAffinity Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). | PodAntiAffinity | Undefined | optional |