Replies: 1 comment 2 replies
-
In your example above you are running the NATS container within the same Pod, if that is intentional then in order to connect to it you would have to connect to it like |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to consolidate several services which were previously run as different pods in Kuberentes, with the hope of reducing system latency. Our system involves communication between several different pods which were often on different nodes in our cluster - due to the specific element of the deployment (most notably the large size of the data sent between the programs), communication between programs on different nodes is the primary source of latency in our system.
One of the components is NATS, which handles the communication between the different services. I naively tried to include the NATS image in the deployment like so:
Application 1 is a Golang program that was connects to NATs using the standard library, and the code:
However, when doing so, the systems refuse to connect to NATs, throwing the error
panic: dial tcp: lookup nats on 10.43.0.10:53: no such host
, though according to the logs, NATs is working correctly. What am I missing in order to make this deployment operable?Beta Was this translation helpful? Give feedback.
All reactions