forked from NVIDIA/gpu-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin-workload-validation.yaml
35 lines (35 loc) · 1 KB
/
plugin-workload-validation.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
apiVersion: v1
kind: Pod
metadata:
labels:
app: nvidia-device-plugin-validator
generateName: nvidia-device-plugin-validator-
namespace: "FILLED_BY_VALIDATOR"
spec:
tolerations:
- key: nvidia.com/gpu
operator: Exists
effect: NoSchedule
restartPolicy: OnFailure
serviceAccountName: nvidia-operator-validator
initContainers:
- name: plugin-validation
image: "FILLED_BY_VALIDATOR"
imagePullPolicy: IfNotPresent
command: ['sh', '-c']
args: ["vectorAdd"]
securityContext:
allowPrivilegeEscalation: false
resources:
limits:
"FILLED_BY_VALIDATOR": 1
containers:
- name: nvidia-device-plugin-validator
image: "FILLED_BY_VALIDATOR"
imagePullPolicy: IfNotPresent
# override command and args as validation is already done by initContainer
command: ['sh', '-c']
args: ["echo device-plugin workload validation is successful"]
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true