The particular problem here is that Cassandra needs to broadcast the 10.42.x.y address for it’s RPC connection. By default it’s discovery the containers 172… address instead.
I’ve worked around this by forcing the container IP with:
and then passing CASSANDRA_BROADCAST_ADDRESS: 10.42.94.224 as an envvar to the container. Obviously this wont’ work for a multinode cluster though.
@vincent I see that the recommend solution here is to use the metadata API to get the IP, however, this wont’ work without creating a new Cassandra container that can perform this action before starting.
Is there anyway that I can configure a label that tells Rancher to expose the IP address as a provided environment variable name?