0

I am moving one application from server to docker in Azure infra. How to map jgroup_bind_addr for ever changing pod ip?

 <TCP bind_port="${jgroups.bind_port}"
     bind_addr="${jgroups.bind_addr}"
 >
  • Usually applications that run in Docker containers need to bind to 0.0.0.0, "everywhere", and you use Docker-level controls to map those to only specific host interfaces if required. [Deploying a minimal flask app in docker - server connection issues](https://stackoverflow.com/questions/30323224/deploying-a-minimal-flask-app-in-docker-server-connection-issues) is probably the most prominent specific instance of this I can think of, but the answer is generic across anything running in Docker. – David Maze Dec 16 '21 at 14:08

1 Answers1

0

By default, Infinispan images bind to SITE_LOCAL which mean "Picks a site local IP address, e.g. from the 192.168.0.0 or 10.0.0.0 address range"

In the JGroups Configuration you can check other possible values available for bind_addr. Look for The following special values are also recognized for bind_addr after the table.

pruivo
  • 1,214
  • 7
  • 7