If we add https_proxy in kubernetes, node is not starting and no peers found, election aborted. Without proxy we are not able to hit openai services. How to configure deployment.yaml to remedy this. This is a single-node setup.
Welcome to our community—it’s lovely to have you here
I’m not an expert in proxies, but I did look into this, and as probably same as "attempt to join and failed" when using PERSISTENCE_DATA_PATH env with efs storage - #3 by franz_hals by other community member, you can try setting the no_proxy environment variable to exclude local addresses and the pod/container’s own IPs from being proxied. This way, Weaviate’s internal communication won’t go through the proxy, while external requests (like to OpenAI) still will.
Try adding a no_proxy variable alongside your https_proxy. For a single-node setup, you’d typically want to exclude at least localhost, 127.0.0.1, and your pod’s own IP range.
I will also tag my colleague @DudaNogueira who is experienced with proxies in case I missed on any critical point in the above.
Have you tried that already?
Best regards,
Mohamed Shahin
Weaviate Support Engineer
(Ireland, UTC±00:00/+01:00)
Thanks for the suggestion. I have tried adding the no_proxy the above issue (no peers found, election aborted), this seems to be resolved. But getting another error i.e. not part of a stable configuration or a non-voter, not triggering a leader election.
I have tried with suggested changes but still the same issue persist, as after adding no_proxy has no effect.
In this single node setup, if I remove https_proxy the weaviate container is running and leader is held & won and able to use the DB. But if i am removing https_proxy won’t able to use openai models.
And with https_proxy, the leader election is not triggering.