File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
content/en/docs/tasks/manage-gpus Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -95,12 +95,13 @@ You also need a plugin for NFD that adds appropriate labels to your nodes; these
95
95
labels or they could be vendor specific. Your GPU vendor may provide a third party
96
96
plugin for NFD; check their documentation for more details.
97
97
98
- {{< highlight yaml "linenos=false,hl_lines=6 -18" >}}
98
+ {{< highlight yaml "linenos=false,hl_lines=7 -18" >}}
99
99
apiVersion: v1
100
100
kind: Pod
101
101
metadata:
102
102
name: example-vector-add
103
103
spec:
104
+ restartPolicy: OnFailure
104
105
# You can use Kubernetes node affinity to schedule this Pod onto a node
105
106
# that provides the kind of GPU that its container needs in order to work
106
107
affinity:
@@ -113,7 +114,6 @@ spec:
113
114
values: [ "40535"]
114
115
- key: "feature.node.kubernetes.io/pci-10.present" # NFD Feature label
115
116
values: [ "true"] # (optional) only schedule on nodes with PCI device 10
116
- restartPolicy: OnFailure
117
117
containers:
118
118
- name: example-vector-add
119
119
image: "registry.example/example-vector-add: v42 "
You can’t perform that action at this time.
0 commit comments