Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
songlinfeng
k8s-device-plugin
Commits
de6e4249
Commit
de6e4249
authored
Nov 26, 2025
by
songlinfeng
💬
Browse files
add dcu-device-plugin.yaml
parent
8a683270
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
2 deletions
+41
-2
Dockerfile
Dockerfile
+2
-2
dcu-device-plugin.yaml
dcu-device-plugin.yaml
+39
-0
No files found.
Dockerfile
View file @
de6e4249
...
...
@@ -15,5 +15,5 @@ LABEL \
description="DCU device plugin for Kubernetes"
RUN
apk
--no-cache
add ca-certificates libdrm
RUN
apk
--no-cache
add hwloc
--repository
=
https://dl-cdn.alpinelinux.org/alpine/edge/community
COPY
--from=0 /go/bin/k8s-device-plugin .
CMD
["./k8s-device-plugin", "-logtostderr=true", "-stderrthreshold=INFO", "-v=5"]
\ No newline at end of file
COPY
--from=0 /go/bin/k8s-device-plugin /bin
CMD
["k8s-device-plugin", "-logtostderr=true", "-stderrthreshold=INFO", "-v=5"]
\ No newline at end of file
dcu-device-plugin.yaml
0 → 100644
View file @
de6e4249
apiVersion
:
apps/v1
kind
:
DaemonSet
metadata
:
name
:
dcu-device-plugin-daemonset
namespace
:
kube-system
spec
:
selector
:
matchLabels
:
name
:
k8s-device-plugin
template
:
metadata
:
labels
:
name
:
k8s-device-plugin
spec
:
nodeSelector
:
kubernetes.io/arch
:
amd64
priorityClassName
:
system-node-critical
tolerations
:
-
key
:
CriticalAddonsOnly
operator
:
Exists
containers
:
-
image
:
docker.io/songlf/k8s-device-plugin:latest
name
:
k8s-device-plugin
securityContext
:
privileged
:
true
capabilities
:
drop
:
[
"
ALL"
]
volumeMounts
:
-
name
:
device-plugins
mountPath
:
/var/lib/kubelet/device-plugins
-
name
:
sys
mountPath
:
/sys
volumes
:
-
name
:
device-plugins
hostPath
:
path
:
/var/lib/kubelet/device-plugins
-
name
:
sys
hostPath
:
path
:
/sys
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment