Skip to content

Commit c2c9dbc

Browse files
committed
update
1 parent b7d2324 commit c2c9dbc

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

internal/pkg/dcu/server.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,10 @@ func (p *Plugin) Allocate(ctx context.Context, reqs *kubeletdevicepluginv1beta1.
564564
ContainerPath: "/opt/hygondriver",
565565
HostPath: os.Getenv("HYGONPATH"),
566566
ReadOnly: false,
567+
}, &kubeletdevicepluginv1beta1.Mount{
568+
ContainerPath: "/opt/hyhal",
569+
HostPath: "/opt/hyhal",
570+
ReadOnly: false,
567571
})
568572
car.Mounts = append(car.Mounts)
569573
}

k8s-dcu-plugin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ spec:
2323
containers:
2424
- image: projecthami/dcu-vgpu-device-plugin:v1.0.1
2525
#command: ["/bin/bash","-c","source /opt/hygondriver/env.sh && sleep infinity"]
26-
command: ["/bin/bash","-c","cd /opt/hygondriver && sleep infinity"]
26+
command: ["/root/k8s-device-plugin"]
2727
name: dcu-dp-cntr
2828
env:
2929
- name: NODE_NAME

0 commit comments

Comments
 (0)