Skip to content

Commit

Permalink
set gpu jobs using a configmap (#1525)
Browse files Browse the repository at this point in the history
Signed-off-by: Paul S. Schweigert <[email protected]>
  • Loading branch information
psschwei authored Oct 23, 2024
1 parent b684b26 commit fbd66dc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,9 @@ spec:
- name: ray-cluster-template
configMap:
name: rayclustertemplate
- name: gpu-jobs
configMap:
name: gpujobs
serviceAccountName: {{ include "gateway.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
Expand Down Expand Up @@ -277,6 +280,8 @@ spec:
name: gateway-pv-storage
- mountPath: "/tmp/templates/"
name: ray-cluster-template
- mountPath: "/tmp/gpujobs/"
name: gpu-jobs
resources:
{{- toYaml .Values.scheduler.resources | nindent 12 }}
env:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: gpujobs
data:
gpu-jobs.json: |
{
"gpu-functions": {}
}
1 change: 1 addition & 0 deletions charts/qiskit-serverless/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ gateway:
nodeImage: "icr.io/quantum-public/qiskit-serverless/ray-node:0.17.1"
opensslImage: registry.access.redhat.com/ubi8/openssl:8.8-9
kubectlImage: alpine/k8s:1.29.2@sha256:a51aa37f0a34ff827c7f2f9cb7f6fbb8f0e290fa625341be14c2fcc4b1880f60
gpuJobsConfig: "/tmp/gpujobs/gpu-jobs.json"
limits:
maxJobsPerUser: 2
maxComputeResources: 4
Expand Down

0 comments on commit fbd66dc

Please sign in to comment.