On Wednesday, May 10, 2017 at 8:00:57 AM UTC-7, scott....@kaseware.com wrote:
> Thank you, that is helpful.  I may be able to work around the lack of support 
> for #3.
> 
> One additional question comes to mind, is there a way to pass information 
> about one stateful set to another?
> 
> I.E. let's say that I have one stateful set that has five replicas.  I want 
> to be able to store the hostnames of each of the replicas, and provide them 
> to another stateful set that needs to communicate with them, preferably as 
> environment variables.  Can this be done?

The hostnames of the replicas are deterministic based on the name of the 
StatefulSet. You should be able to resolve the membership of the first 
StatefulSet from the second by looking up the SRV records associated with the 
CNAME provided that you use 
"service.alpha.kubernetes.io/tolerate-unready-endpoints" on the Headless 
Service of the first StatefulSet.

-- 
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.

Reply via email to