<div dir="ltr">Questions inlined:<br><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 8, 2017 at 8:57 AM, Sebastian Laskawiec <span dir="ltr">&lt;<a href="mailto:slaskawi@redhat.com" target="_blank">slaskawi@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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></blockquote><div><br></div><div><br>What about SNI, wasn&#39;t this scenario the reason why it was implemented, IOW to allow HR clients to access an ispn hosted in the cloud?<br><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><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></blockquote><div><br></div><div>What does &quot;application&quot; mean in the diagram? Are those different pods, or single containers part of a pod?<br></div><div><br>There isn&#39;t much doc available at [2], how does it work?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><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></ol></div></div></blockquote><div><br>How would the external address be allocated, e.g. during scaling up and down and how the HR client would know how to map them correctly?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><ol><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#<wbr>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" target="_blank">https://github.com/<wbr>kubernetes/community/pull/446</a></div><div>[2] <a href="https://github.com/slaskawi/external-ip-proxy" target="_blank">https://github.com/<wbr>slaskawi/external-ip-proxy</a></div></div>
<br>______________________________<wbr>_________________<br>
infinispan-dev mailing list<br>
<a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/infinispan-<wbr>dev</a><br></blockquote></div><br></div></div></div>