"tests/python/common/test_subgraph.py" did not exist on "f36a451420254de7dd49193dde7455b83859c9e5"
Commit de6e4249 authored by songlinfeng's avatar songlinfeng 💬
Browse files

add dcu-device-plugin.yaml

parent 8a683270
...@@ -15,5 +15,5 @@ LABEL \ ...@@ -15,5 +15,5 @@ LABEL \
description="DCU device plugin for Kubernetes" description="DCU device plugin for Kubernetes"
RUN apk --no-cache add ca-certificates libdrm RUN apk --no-cache add ca-certificates libdrm
RUN apk --no-cache add hwloc --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community RUN apk --no-cache add hwloc --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community
COPY --from=0 /go/bin/k8s-device-plugin . COPY --from=0 /go/bin/k8s-device-plugin /bin
CMD ["./k8s-device-plugin", "-logtostderr=true", "-stderrthreshold=INFO", "-v=5"] CMD ["k8s-device-plugin", "-logtostderr=true", "-stderrthreshold=INFO", "-v=5"]
\ No newline at end of file \ No newline at end of file
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment