1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/kueue-configuring-localqueues.adoc
2025-10-01 17:34:03 +00:00

41 lines
1.0 KiB
Plaintext

// Module included in the following assemblies:
//
// * ai_workloads/kueue/configuring-quotas.adoc
:_mod-docs-content-type: PROCEDURE
[id="configuring-localqueues_{context}"]
= Configuring a local queue
A local queue is a namespaced object, represented by a `LocalQueue` object, that groups closely related workloads that belong to a single namespace.
As an administrator, you can configure a `LocalQueue` object to point to a cluster queue. This allocates resources from the cluster queue to workloads in the namespace specified in the `LocalQueue` object.
.Prerequisites
include::snippets/prereqs-snippet-yaml.adoc[]
* You have created a `ClusterQueue` object.
.Procedure
. Create a `LocalQueue` object as a YAML file:
+
.Example of a basic `LocalQueue` object
[source,yaml]
----
apiVersion: kueue.x-k8s.io/v1beta1
kind: LocalQueue
metadata:
namespace: team-namespace
name: user-queue
spec:
clusterQueue: cluster-queue
----
. Apply the `LocalQueue` object by running the following command:
+
[source,terminal]
----
$ oc apply -f <filename>.yaml
----