Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can we use in k8s pod? #46

Open
anup28 opened this issue May 29, 2022 · 5 comments
Open

can we use in k8s pod? #46

anup28 opened this issue May 29, 2022 · 5 comments

Comments

@anup28
Copy link

anup28 commented May 29, 2022

No description provided.

@anup28
Copy link
Author

anup28 commented May 30, 2022

We are using USB-1024LS , can see in lsusb output. But getting error as <Error: No DAQ devices found>

@anup28
Copy link
Author

anup28 commented May 30, 2022

output of lsusb:::

<Bus 009 Device 002: ID 09db:0076 MCC USB-1024LS
Bus 009 Device 001: ID 1d6b:0002 Linux 5.4.0-113-generic xhci-hcd xHCI Host Controller
Bus 010 Device 001: ID 1d6b:0003 Linux 5.4.0-113-generic xhci-hcd xHCI Host Controller
Bus 002 Device 001: ID 1d6b:0002 Linux 5.4.0-113-generic ehci_hcd EHCI Host Controller
Bus 008 Device 001: ID 1d6b:0001 Linux 5.4.0-113-generic uhci_hcd UHCI Host Controller
Bus 007 Device 001: ID 1d6b:0001 Linux 5.4.0-113-generic uhci_hcd UHCI Host Controller
Bus 006 Device 001: ID 1d6b:0001 Linux 5.4.0-113-generic uhci_hcd UHCI Host Controller
Bus 001 Device 001: ID 1d6b:0002 Linux 5.4.0-113-generic ehci_hcd EHCI Host Controller
Bus 005 Device 001: ID 1d6b:0001 Linux 5.4.0-113-generic uhci_hcd UHCI Host Controller
Bus 004 Device 001: ID 1d6b:0001 Linux 5.4.0-113-generic uhci_hcd UHCI Host Controller
Bus 003 Device 001: ID 1d6b:0001 Linux 5.4.0-113-generic uhci_hcd UHCI Host Controller

@jeffreyg3
Copy link

Measurement Computing has not conducted any testing using Kubernetes pods. There are no plans to do so.

@samkristoff
Copy link

Hey @anup28,

I think this should be possible if you configure the container correctly:

https://stackoverflow.com/questions/42697985/kubernetes-node-device-port-usb-mapping-to-pod-or-swarm-service-device-mapp

Out of curiosity, what are you working on needs to access the MCC hardware from K8s?

@thompcd
Copy link

thompcd commented Apr 18, 2023

I was able to run this out of a docker container, so I assume you could do it with a cluster, although I'm also curious as to why somebody would do that.. On the host device, you'll need to map the host device inside of the container as referenced above, but also you'll need to modify the install.sh script. It calls daqhats_read_eeprom during the setup as a validation and will abort on failure, but this will never pass during your makefile execution since it requires host hardware not in place yet.

I broke out the install script to just the compilation & installation and created a startup script that will execute the daqhats_read_eeprom on boot to ensure the hats stay up to date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants