█

AI/TLDR

Buy me a coffee
Buy me a coffee

Kueue

Kubernetes-native job queueing with quotas and admission control for batch and ML workloads

GPU & Compute CloudsOpen source
Language
Go
License
Apache-2.0
IN SHORT

What is Kueue?

Kueue is a set of APIs and a controller for job queueing on Kubernetes. It sits in the GPU & Compute Clouds category of the Models & Inference tools and is open-source, written in Go and licensed Apache-2.0. To get started: install Kueue.

Overview

Kueue is a set of APIs and a controller for job queueing on Kubernetes. It is a job-level manager that decides when a job should be admitted to start (when its pods can be created) and when it should be stopped (when its active pods should be deleted), based on the quotas you define.

It is built for platform and MLOps teams who run batch and ML training jobs on shared clusters and need to share a fixed pool of CPU, memory, and GPUs fairly across teams. Instead of letting every job create pods immediately, jobs wait in a queue and are admitted only when quota is available.

Within compute orchestration, Kueue sits above the Kubernetes scheduler rather than replacing it. It has built-in support for common job types, including the batch Job, Kubeflow training jobs, RayJob, RayCluster, JobSet, and plain Pods and Pod groups.

What it does

  • Job queueing with StrictFIFO and BestEffortFIFO strategies and priority-based ordering
  • Resource management with resource flavors, cohorts, fair sharing, and preemption policies between tenants
  • Built-in integrations for BatchJob, Kubeflow training jobs, RayJob, RayCluster, JobSet, and plain Pods and Pod groups
  • AdmissionChecks let internal or external components influence whether a workload is admitted, including cluster-autoscaler provisioningRequest
  • Partial admission and dynamic reclaim run jobs with reduced parallelism and release quota as pods complete
  • MultiKueue multi-cluster dispatch and topology-aware scheduling for pod-to-pod communication throughput

Getting started

Install the Kueue controller into an existing Kubernetes cluster, then opt a job into queueing by adding a queue-name label.

Install Kueue

Apply the released manifests with server-side apply. Requires Kubernetes 1.29 or newer.

bashbash
kubectl apply --server-side -f https://github.com/kubernetes-sigs/kueue/releases/download/v0.18.1/manifests.yaml

Configure quotas

Create a ResourceFlavor, a ClusterQueue that holds the quota, and a LocalQueue in your namespace. The official quickstart documents these objects; the queue name used below (user-queue) must match a LocalQueue you create.

Submit a job to the queue

Add the kueue.x-k8s.io/queue-name label to a Job so Kueue manages its admission, then create it.

yamlyaml
apiVersion: batch/v1
kind: Job
metadata:
  generateName: sample-job-
  namespace: default
  labels:
    kueue.x-k8s.io/queue-name: user-queue
spec:
  parallelism: 3
  completions: 3
  template:
    spec:
      containers:
      - name: dummy-job
        image: registry.k8s.io/e2e-test-images/agnhost:2.53
        command: [ "/bin/sh" ]
        args: [ "-c", "sleep 60" ]
        resources:
          requests:
            cpu: "1"
            memory: "200Mi"
      restartPolicy: Never

Create the job

Kueue creates a Workload object for the job and admits it once quota is available.

bashbash
kubectl create -f sample-job.yaml

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Share a fixed pool of GPUs across several teams with per-team quotas and fair sharing on one cluster
  • Queue large batch or ML training jobs so they start only when capacity frees up instead of failing to schedule
  • Run Kubeflow, Ray, or JobSet training jobs under quota and admission control without changing the scheduler
  • Dispatch work across multiple clusters with MultiKueue to find spare capacity and off-load the main cluster

How Kueue compares

Kueue alongside other open-source gpu & compute clouds tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
Ray★ 44.4kA distributed computing framework that scales Python and ML workloads for training, tuning, data processing, and serving.
Prefect★ 24.3kA Python-native workflow orchestration tool for scheduling, running, and monitoring data and ML pipelines.
Dagster★ 16.5kA data and ML pipeline orchestrator with a declarative asset model, built-in lineage, and observability.
Kubeflow★ 16kA Kubernetes toolkit that brings together pipelines, notebooks, and training operators for running ML workflows at scale.
Kedro★ 11.1kPython framework for production-ready data engineering and data science pipelines, hosted by the LF AI & Data Foundation: a project template, a Data Catalog of connectors, and a dependency-resolving pipeline abstraction.
SkyPilot★ 10.9kA framework that runs AI jobs across clouds and Kubernetes, automatically finding and provisioning the cheapest available GPUs.
Metaflow★ 10.4kA Python framework from Netflix for building and running data science and ML workflows that scale from laptop to cloud.
Kueue★ 3.2kKubernetes-native job queueing with quotas and admission control for batch and ML workloads