Skip to content

Commit

Permalink
Fix yaml
Browse files Browse the repository at this point in the history
Signed-off-by: xuzhonghu <[email protected]>
  • Loading branch information
hzxuzhonghu committed Jul 5, 2020
1 parent 5ec64dc commit fed235b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ kind: Pod
metadata:
name: gpu-pod1
spec:
schedulerName: volcano
containers:
- name: cuda-container
image: nvidia/cuda:9.0-devel
Expand All @@ -97,6 +98,7 @@ kind: Pod
metadata:
name: gpu-pod2
spec:
schedulerName: volcano
containers:
- name: cuda-container
image: nvidia/cuda:9.0-devel
Expand Down
1 change: 1 addition & 0 deletions pod1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
name: pod1
spec:
restartPolicy: OnFailure
schedulerName: volcano
containers:
- image: nvidia/cuda:10.1-base-ubuntu18.04
name: pod1-ctr
Expand Down
6 changes: 5 additions & 1 deletion volcano-device-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,13 @@ metadata:
rules:
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get"]
- apiGroups: [""]
resources: ["nodes/status"]
verbs: ["patch"]
- apiGroups: [""]
resources: ["pods"]
verbs: ["list"]
verbs: ["get", "list"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
Expand Down Expand Up @@ -77,6 +80,7 @@ spec:
# be rescheduled after a failure.
# See https://kubernetes.io/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods/
priorityClassName: "system-node-critical"
serviceAccount: volcano-device-plugin
containers:
- image: volcanosh/volcano-device-plugin:latest
name: volcano-device-plugin
Expand Down

0 comments on commit fed235b

Please sign in to comment.