diff --git a/charts/agh3/Chart.lock b/charts/agh3/Chart.lock index 296ef47..d22d866 100644 --- a/charts/agh3/Chart.lock +++ b/charts/agh3/Chart.lock @@ -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" diff --git a/charts/agh3/templates/kueue/kueue.yml b/charts/agh3/templates/kueue/kueue.yml new file mode 100644 index 0000000..3424db3 --- /dev/null +++ b/charts/agh3/templates/kueue/kueue.yml @@ -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 }} diff --git a/charts/agh3/values.yaml b/charts/agh3/values.yaml index ef3633e..4504f84 100644 --- a/charts/agh3/values.yaml +++ b/charts/agh3/values.yaml @@ -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: