Skip to content

Commit ac208ef

Browse files
committed
fix: naming for the daemonset
Signed-off-by: Paul Bastide <[email protected]>
1 parent 5716756 commit ac208ef

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
apiVersion: apps/v1
2+
kind: DaemonSet
3+
metadata:
4+
name: nx-device-plugin
5+
namespace: kube-system
6+
labels:
7+
app: nx-device-plugin
8+
spec:
9+
selector:
10+
matchLabels:
11+
app: nx-device-plugin
12+
template:
13+
metadata:
14+
labels:
15+
app: nx-device-plugin
16+
spec:
17+
securityContext:
18+
fsGroup: 0
19+
containers:
20+
- name: nx-device-plugin
21+
image: quay.io/powercloud/power-dra-driver:main
22+
imagePullPolicy: IfNotPresent
23+
command: ["/opt/power-dra/bin/power-dra-kubeletplugin"]
24+
args:
25+
- "--node-name=worker-0"
26+
- "--cdi-root=/cdi"
27+
securityContext:
28+
allowPrivilegeEscalation: false
29+
runAsNonRoot: false
30+
runAsUser: 0
31+
capabilities:
32+
drop: ["ALL"]
33+
seccompProfile:
34+
type: RuntimeDefault
35+
volumeMounts:
36+
- name: device-plugins
37+
mountPath: /var/lib/kubelet/plugins
38+
- name: cdi-dir
39+
mountPath: /cdi
40+
volumes:
41+
- name: device-plugins
42+
hostPath:
43+
path: /var/lib/kubelet/plugins
44+
type: DirectoryOrCreate
45+
- name: cdi-dir
46+
emptyDir: {}

0 commit comments

Comments
 (0)