Setup manageJobsWithoutQueueName
This page describes how to configure Kueue to ensure that all Workloads submitted in namespaces
intended for use by batch users will be managed by Kueue even if they lack a kueue.x-k8s.io/queue-name
label.
Before you begin
Learn how to install Kueue with a custom manager configuration.
Configuration
You will need to modify the manage configuration to set manageJobsWithoutQueueName
to true.
If you also modify the default configuration to enable the Pod
, Deployment
or StatefulSet
integrations,
you may also need to override the default value of integrations.podOptions.namespaceSelector
(Kueue 0.9 or earlier)
or managedJobsNamespaceSelector
(Kueue 0.10 or later) to limit the scope of manageJobsWithoutQueueName
to only apply to batch user namespaces.
The default value for both integrations.podOptions.namespaceSelector
and managedJobsNamespaceSelector
is
matchExpressions:
- key: kubernetes.io/metadata.name
operator: NotIn
values: [ kube-system, kueue-system ]
This dafault value exempts the kube-system
and kueue-system
namespaces from management; all other
namespaces will be managed by Kueue when manageJobsWithoutQueueName
is true.
Alternatively, the batch administrator can label namespaces that are intended for batch users and define a selector that matches only those namespaces. For example,
managedJobsNamespaceSelector:
matchLabels:
kueue.x-k8s.io/managed-namespace: true
Note
managedJobsNamespaceSelector
is a Beta feature that is enabled by default.
You can disable it by setting the ManagedJobsNamespaceSelector
feature gate. Check the Installation guide for details on feature gate configuration.
Expected Behavior
In all namespaces that match the namespace selector, any Workloads submitted without a kueue.x-k8s.io/queue-name
label will be suspended. These Workloads will not be considered for admission by Kueue until
they are edited to have a kueue.x-k8s.io/queue-name
label.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.