Skip to content

Commit

Permalink
Add GPU use case example
Browse files Browse the repository at this point in the history
  • Loading branch information
FFFFFaraway committed Aug 14, 2022
1 parent 2250390 commit de77199
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions config/gpu-example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: gpu-pg
namespace: sw
data:
minAvailable: "5"
scheduleTimeoutSeconds: "20"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: gpu-example
namespace: sw
spec:
replicas: 5
selector:
matchLabels:
app: busybox
template:
metadata:
labels:
app: busybox
pod-group.scheduling.bdap.com/podgroup-configmap: gpu-pg
spec:
schedulerName: gang-scheduler
containers:
- image: busybox
name: busybox
command: ["sleep", "infinity"]
resources:
limits:
nvidia.com/gpu: 1
tolerations:
- effect: NoSchedule
key: gpu
operator: Exists

0 comments on commit de77199

Please sign in to comment.