Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
archlitchi committed Jun 13, 2024
1 parent b7d2324 commit c2c9dbc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions internal/pkg/dcu/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion k8s-dcu-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c2c9dbc

Please sign in to comment.