forked from bluebeach/k8s-hostdev-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhostdev-plugin-ds.yaml
More file actions
37 lines (37 loc) · 913 Bytes
/
hostdev-plugin-ds.yaml
File metadata and controls
37 lines (37 loc) · 913 Bytes
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
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: hostdev-device-plugin
namespace: kube-system
spec:
selector:
matchLabels:
name: hostdev-device-plugin-ds
template:
metadata:
labels:
name: hostdev-device-plugin-ds
spec:
securityContext:
privileged: true
seccompProfile:
type: Unconfined
hostNetwork: true
imagePullPolicy: Always
containers:
- name: hostdev
image: ghcr.io/thehonker/k8s-hostdev-plugin:latest
args: ["--devs", "/dev/mem:rw,/dev/fuse:rwm,/dev/kfd:rw,/dev/dri:rw"]
volumeMounts:
- name: device-plugin
mountPath: /var/lib/kubelet/device-plugins
- name: dev
mountPath: /dev
volumes:
- name: device-plugin
hostPath:
path: /var/lib/kubelet/device-plugins
- name: dev
hostPath:
path: /dev