I have a service that is using a load-balancer in order to expose externally a certain IP. I am using metallb because my cluster is bare metal.
This is the configuration of the service:
Inside of the cluster the application running perform a binding to a zmq socket (TCP type) like:
m_zmqSock->bind(endpoint);
where endpoint = tcp://127.0.0.1:1234
and
m_zmqSock = std::make_unique<zmq::socket_t>(*m_zmqContext,zmq::socket_type::pair);
m_zmqSock->setsockopt(ZMQ_RCVTIMEO,1);
Then from an application in my local computer (with access to the cluster) I am trying to connect and send data like:
zmqSock->connect(zmqServer);
where zmqServer = tcp://192.168.49.241:1234
and
zmq::context_t ctx;
auto zmqSock = std::make_unique<zmq::socket_t>(ctx,zmq::socket_type::pair);
Any idea on how could I make the zmq socket connect from my host to send data to the application and receive response also?