Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dc47888

Browse files
committedMay 29, 2025·
KFLUXINFRA-1550: Queue configurations
Configure the Pipelineruns queues on the cluster. - LocalQueue for each tenant - created by Kyverno - A global cluster queue configured with admission check provided by kueue-external-admission. Signed-off-by: Gal Ben Haim <gbenhaim@redhat.com>
1 parent 54f6d9a commit dc47888

File tree

4 files changed

+68
-0
lines changed

4 files changed

+68
-0
lines changed
 

‎components/kueue/development/kustomization.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ resources:
44
- kueue
55
- tekton-kueue
66
- kueue-external-admission
7+
- queue-config
8+
9+
commonAnnotations:
10+
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
apiVersion: kyverno.io/v1
3+
kind: ClusterPolicy
4+
metadata:
5+
name: bootstrap-tenant-namespace-queue
6+
spec:
7+
rules:
8+
- name: create-local-queue
9+
match:
10+
any:
11+
- resources:
12+
kinds:
13+
- Namespace
14+
selector:
15+
matchLabels:
16+
konflux-ci.dev/type: tenant
17+
operations:
18+
- CREATE
19+
- UPDATE
20+
generate:
21+
generateExisting: true
22+
synchronize: true
23+
apiVersion: kueue.x-k8s.io/v1beta1
24+
kind: LocalQueue
25+
name: pipelines-queue
26+
namespace: '{{request.object.metadata.name}}'
27+
data:
28+
spec:
29+
clusterQueue: cluster-pipeline-queue
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
apiVersion: kueue.x-k8s.io/v1beta1
3+
kind: ResourceFlavor
4+
metadata:
5+
name: "default-flavor"
6+
---
7+
apiVersion: kueue.x-k8s.io/v1beta1
8+
kind: AdmissionCheck
9+
metadata:
10+
name: static-admission
11+
spec:
12+
controllerName: konflux-ci.dev/kueue-external-admission
13+
---
14+
apiVersion: kueue.x-k8s.io/v1beta1
15+
kind: ClusterQueue
16+
metadata:
17+
name: cluster-pipeline-queue
18+
spec:
19+
namespaceSelector: {}
20+
queueingStrategy: BestEffortFIFO
21+
admissionChecks:
22+
- static-admission
23+
resourceGroups:
24+
- coveredResources:
25+
- "tekton.dev/pipelineruns"
26+
flavors:
27+
- name: "default-flavor"
28+
resources:
29+
- name: "tekton.dev/pipelineruns"
30+
nominalQuota: 500
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
resources:
4+
- cluster-policy.yaml
5+
- cluster-queue.yaml

0 commit comments

Comments
 (0)
Please sign in to comment.