Some documentation here: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#stable-network-id
Try using <ordinal-name>.<statefulset-name> format e.g. "ping db-0.cassandra". On Fri, Oct 20, 2017 at 2:00 PM, DK <desmond.kirr...@gmail.com> wrote: > Hi, > > I'm running a Stateful Set with Headless Service (db-0, db-1, db2) > similar to the Cassandra example here > <https://kubernetes.io/docs/tutorials/stateful-application/cassandra/> > > However, when the pods start up they cannot ping each: > > > kubectl exec -it db-0 -- ping db-1 > ping: unknown host > > My cluster was created by kubeadm and I can see the kube-dns pod is > running. > Am I missing something or are there logs I can check? > > -- > You received this message because you are subscribed to the Google Groups > "Kubernetes user discussion and Q&A" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to kubernetes-users+unsubscr...@googlegroups.com. > To post to this group, send email to kubernetes-users@googlegroups.com. > Visit this group at https://groups.google.com/group/kubernetes-users. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups.com. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.