Skip to content

Commit

Permalink
feat: add kueue queue definition
Browse files Browse the repository at this point in the history
  • Loading branch information
ambersun1234 committed Dec 12, 2024
1 parent cdbc032 commit c8b2829
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/agh3/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ dependencies:
repository: https://charts.lkc-lab.com
version: 0.1.1
digest: sha256:fb6ba056468f47e486b96134dccb3de190f3525da983e7413f352b5bd6051982
generated: "2024-09-11T12:52:01.457922+08:00"
generated: "2024-12-10T15:44:17.099149+08:00"
38 changes: 38 additions & 0 deletions charts/agh3/templates/kueue/kueue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{{ if .Values.kueue.enabled}}
apiVersion: kueue.x-k8s.io/v1beta1
kind: ClusterQueue
metadata:
name: {{ .Values.kueue.queueName.cluster }}
labels:
{{- include "AGH3.labels" . | nindent 4 }}
spec:
namespaceSelector: {}
resourceGroups:
- coveredResources: ["jobs"]
flavors:
- name: "default-flavor"
resources:
- name: "jobs"
nominalQuota: {{ .Values.kueue.concurrentJobs }}

---

apiVersion: kueue.x-k8s.io/v1beta1
kind: LocalQueue
metadata:
namespace: {{ .Release.Namespace }}
name: {{ .Values.kueue.queueName.local }}
labels:
{{- include "AGH3.labels" . | nindent 4 }}
spec:
clusterQueue: {{ .Values.kueue.queueName.cluster }}

---

apiVersion: kueue.x-k8s.io/v1beta1
kind: ResourceFlavor
metadata:
name: default-flavor
labels:
{{- include "AGH3.labels" . | nindent 4 }}
{{- end }}
13 changes: 13 additions & 0 deletions charts/agh3/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,19 @@ minio:
## @param minio.extraEnvVarsCM
##
extraEnvVarsCM: agh-minio-cm
## @section Kueue parameters
kueue:
## @param kueue.enabled Enable internal kueue
enabled: false
## @skip kueue.fullnameOverride
fullnameOverride: kueue
queueName:
## @param kueue.queueName.cluster Cluster queue name
## @param kueue.queueName.local Local queue name
cluster: agh3-cluster-pool
local: agh3-local-pool
## @param kueue.concurrentJobs Number of concurrent jobs
concurrentJobs: 100
## @section Redis parameters
##
redis:
Expand Down

0 comments on commit c8b2829

Please sign in to comment.