Cool. Thanks a lot Clayton. That sounds like the correct way to deploy Cassandra.
Mohamed. On Fri, Mar 4, 2016 at 8:00 AM, Clayton Coleman <[email protected]> wrote: > I recommend looking through the Kubernetes Cassandra example - it > describes how you can fix the common problems: > > https://github.com/kubernetes/kubernetes/tree/master/examples/cassandra > > On Mar 4, 2016, at 3:21 AM, Mohamed Lrhazi <[email protected]> > wrote: > > 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 < > [email protected]> 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 > [email protected] > http://lists.openshift.redhat.com/openshiftmm/listinfo/users > >
_______________________________________________ users mailing list [email protected] http://lists.openshift.redhat.com/openshiftmm/listinfo/users
