Labels and Annotations in YuniKorn
Labels and Annotations in YuniKorn
YuniKorn utilizes several Kubernetes labels and annotations to support various features:
Labels in YuniKorn
Name | Description |
---|---|
applicationId | Associates this pod with an application. |
queue | Selects the YuniKorn queue this application should be scheduled in. This may be ignored if a placement policy is in effect. |
spark-app-selector | Alternative method of specifying applicationId used by Spark Operator if the label applicationId and annotation yunikorn.apache.org/app-id unset. |
Annotations in YuniKorn
All annotations are under the namespace yunikorn.apache.org
. For example yunikorn.apache.org/app-id
.
Name | Description |
---|---|
app-id | Assoiates this pod with an application. The priority of applicationID is determined by: annotation yunikorn.apache.org/app-id > label applicationId > label spark-app-selector . |
queue | Selects the YuniKorn queue this application should be scheduled in. The priority of queue is determined by: label queue > annotation yunikorn.apache.org/queue > default. |
task-group-name | Sets the task group name this pod belongs to for the purposes of gang scheduling. It must be listed within task-groups . |
task-groups | Defines the set of task groups for this application for gang scheduling. Each pod within an application must define all task groups. |
schedulingPolicyParameters | Arbitrary key-value pairs used to customize scheduling policies such as gang scheduling. |
allow-preemption | The allow-preemption annotation can be set on the Pod or PriorityClass object. The annotation in Pod takes priority over PriorityClass. It will trigger opt out of preemption for pods. Further details can be found in the DaemonSet Scheduling using Simple Preemptor documentation. |
parentqueue | Define a parent queue for a set of K8s namespaces. Further details can be found in the Resource Quota Management documentation. |
namespace.quota | Set the maximum capacity of the queue mapped to this namespace. Further details can be found in the Resource Quota Management documentation. |
[DEPRECATED] namespace.max.cpu | Replaced with namespace.quota since version 1.2.0 |
[DEPRECATED] namespace.max.memory | Replaced with namespace.quota since version 1.2.0 |
namespace.enableYuniKorn | Controls which namespaces will have pods forwarded to Yunikorn for scheduling. Further details can be found in the Service Configuration #admission-controller-filtering-settingsdocumentation. |
namespace.generateAppId | Controls which namespaces will have pods labeled with an applicationId . Further details can be found in the Service Configuration #admission-controller-filtering-settings documentation. |
For more details surrounding gang-scheduling labels and annotations, please refer to the documentation on gang scheduling.