<div dir="ltr">Hey guys!<div><br></div><div>A while ago I started working on exposing Infinispan Cluster which is hosted in Kubernetes to the outside world:</div><div><br></div><div><img src="cid:15be70075d5d0cad2201" alt="pasted1" style="opacity: 1; margin-right: 0px;" width="562" height="169"><br></div><div><br></div><div>I&#39;m currently struggling to get solution like this into the platform [1] but in the meantime I created a very simple POC and I&#39;m testing it locally [2]. </div><div><br></div><div>There are two main problems with the scenario described above:</div><div><ol><li>Infinispan server announces internal addresses (172.17.x.x) to the client. The client needs to remap them into external ones (172.29.x.x).</li><li>A custom Consistent Hash needs to be supplied to the Hot Rod client. When accessing cache, the Hot Rod Client needs to calculate server id for internal address and then map it to the external one.</li></ol><div>If there will be no strong opinions regarding to this, I plan to implement this shortly. There will be additional method in Hot Rod Client configuration (ConfigurationBuilder#addServerMapping(String mappingClass)) which will be responsible for mapping external addresses to internal and vice-versa.</div></div><div><br></div><div>Thoughts?</div><div><br></div><div>Thanks,</div><div>Sebastian</div><div><br></div><div>[1] <a href="https://github.com/kubernetes/community/pull/446">https://github.com/kubernetes/community/pull/446</a></div><div>[2] <a href="https://github.com/slaskawi/external-ip-proxy">https://github.com/slaskawi/external-ip-proxy</a></div></div>