I created two pods.... started the first, obtained its IP, then manually added it to the Dockerfile of the second pod:
ENV CASSANDRA_CLUSTER_NAME=avesterra \ CASSANDRA_SEEDS=10.1.0.85 Now deploying this second pod seems to actually work... So, how do I refer to the the IP of another pod, in my Dockerfile? I tried simply using the "name" of the other pod... as I understand this should resolve via the dynamic DNS to the correct pod... but the name does not seem to resolve at all.... cassandra@cassandra-1-8fjph:/$ cat /etc/resolv.conf nameserver 172.30.0.1 nameserver 141.161.100.201 nameserver 141.161.200.201 search aversterra-server.svc.cluster.local svc.cluster.local cluster.local uis.georgetown.edu georgetown.edu options ndots:5 cassandra@cassandra-1-8fjph:/$ host cassandra-seeder Host cassandra-seeder not found: 3(NXDOMAIN) cassandra@cassandra-1-8fjph:/$ On Fri, Mar 4, 2016 at 12:58 AM, Mohamed Lrhazi < mohamed.lrh...@georgetown.edu> wrote: > Hello, > > One way, maybe only way, to start a cassandra cluster is like this: > > - start one node. > - start more nodes and give them the IP@ of the first one as seed > address, via ENV variable. > > How can I do this on OpenShift? would I use a Service ? What would I set > in the deployment config of such a pod.... How do I reference the IP of the > other instance of the same pod? > > > Thanks, > Mohamed. >
_______________________________________________ users mailing list users@lists.openshift.redhat.com http://lists.openshift.redhat.com/openshiftmm/listinfo/users