forked from ehfd/nvidia-dind
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nvidia-dind.yml
41 lines (40 loc) · 1.05 KB
/
nvidia-dind.yml
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
36
37
38
39
40
41
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
apiVersion: apps/v1
kind: Deployment
metadata:
name: nvidia-dind
spec:
replicas: 1
selector:
matchLabels:
app: nvidia-dind
template:
metadata:
labels:
app: nvidia-dind
spec:
hostname: nvidia-dind
containers:
- name: nvidia-dind
image: ghcr.io/ehfd/nvidia-dind:latest
stdin: true
tty: true
securityContext:
privileged: true
resources:
limits:
memory: 64Gi
cpu: "16"
nvidia.com/gpu: 1
requests:
memory: 100Mi
cpu: 100m
volumeMounts:
- mountPath: /var/lib/docker
name: data
volumes:
- name: data
# Change to a PersistentVolumeClaim to preserve images and containers, otherwise keep this line to prevent file system error
emptyDir: {}