ChristianTremblay/BAC0

BAC0 on kubernetes

Closed this issue · 7 comments

Hi, Im trying to run BAC0.lite() on kubernetes container But I cant init BAC0 device.
I`m getting such log and error:

Initializing bacnet connection for worker.
2024-07-19 14:46:18,180 - INFO | Starting BAC0 version 21.02.25 (Lite)
2024-07-19 14:46:18,180 - INFO | Use BAC0.log_level to adjust verbosity of the app.
2024-07-19 14:46:18,180 - INFO | Ex. BAC0.log_level('silence') or BAC0.log_level('error')
2024-07-19 14:46:18,181 - INFO | Starting TaskManager
2024-07-19 14:46:18,181 - INFO | Using ip : x.x.x.x:47810
2024-07-19 14:46:18,182 - ERROR | an error has occurred: [Errno 99] Cannot assign requested address

Any ideas why BAC0 bind ip and port to kubernetes container?

When ip is not provided, it tries to reach google.com and bind to the interface that gives a response.

When ip is not provided, it tries to reach google.com and bind to the interface that gives a response.

Instead x.x.x.x Im using Kubernetes POD ip address . And I dont know why but it cant bind IP address. Priviously I was running my app in docker desktop. And BAC0 library work perfectly on container. But now we need scale our app by clients. And for this reason why would like to use Kuberntes services. I cant find any reason why it`s not working ...

Firstly, I'm trying to initiate the BAC0 app, but I get an error during initialization. I tried to expose the port, but it didn't help. If I succeed in initiating the BAC0 app, I will send requests to the controller, which will be in a private VPN network.

Have you tried initializing BAC0 using the IP of the VPN interface ?

This issue had no activity for a long period of time. If this issue is still required, please update the status or else, it will be closed. Please note that an issue can be reopened if required.