janekbaraniewski / kubeserial

k8s operator for managing serial devices.
Apache License 2.0
37 stars 4 forks source link

Is there anyway to generalize this so that this can be used with any project? #72

Open hansaya opened 2 years ago

hansaya commented 2 years ago

First, this is a really cool project. Thank you for doing all the work. I think this project can be used with lot of home automation products. Such as Zwave or zigbee dongles. Is there anyway to achieve this without rebuilding the official images/charts?

janekbaraniewski commented 2 years ago

Hey! I'm currently working on this. There are few limitations that I have to overcome but I really wanna make it work with zwave/zigbee, I'm currently working on Sonoff zigbee 3.0 dongle and Home Assistant integration using KubeSerial.

Main limitation here is that you need pty created inside "manager" container - so most likely you'd need at least socat available there. I already have some POC but there are still some issues to resolve.

Final solution that I currently have in mind would utilise k8s mutating webhook, which would mutate manager deployment to inject serial device connection. So you'd just add proper annotation to f.e. homeassistant deployment and you'd get your serial device inside.

I'm actively working on this but it will probably take a little more time :)

hansaya commented 12 months ago

any updates? I'm happy to test it :)