From c2c9dbcb0c0412d8f355c4d23f7275e9e17dea73 Mon Sep 17 00:00:00 2001 From: limengxuan <391013634@qq.com> Date: Thu, 13 Jun 2024 18:11:32 +0800 Subject: [PATCH] update --- internal/pkg/dcu/server.go | 4 ++++ k8s-dcu-plugin.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/pkg/dcu/server.go b/internal/pkg/dcu/server.go index bae91fa..5a310df 100644 --- a/internal/pkg/dcu/server.go +++ b/internal/pkg/dcu/server.go @@ -564,6 +564,10 @@ func (p *Plugin) Allocate(ctx context.Context, reqs *kubeletdevicepluginv1beta1. ContainerPath: "/opt/hygondriver", HostPath: os.Getenv("HYGONPATH"), ReadOnly: false, + }, &kubeletdevicepluginv1beta1.Mount{ + ContainerPath: "/opt/hyhal", + HostPath: "/opt/hyhal", + ReadOnly: false, }) car.Mounts = append(car.Mounts) } diff --git a/k8s-dcu-plugin.yaml b/k8s-dcu-plugin.yaml index 8daaa16..b5a02ec 100644 --- a/k8s-dcu-plugin.yaml +++ b/k8s-dcu-plugin.yaml @@ -23,7 +23,7 @@ spec: containers: - image: projecthami/dcu-vgpu-device-plugin:v1.0.1 #command: ["/bin/bash","-c","source /opt/hygondriver/env.sh && sleep infinity"] - command: ["/bin/bash","-c","cd /opt/hygondriver && sleep infinity"] + command: ["/root/k8s-device-plugin"] name: dcu-dp-cntr env: - name: NODE_NAME