Can you explain a bit more of the problem you are trying to solve? Generally pods should be treated as anonymous unless you really need something like StatefulSet.
A headless service will provide the IPs of all the pods, if that helps. > On Mar 1, 2018, at 4:22 AM, james.mas...@jmips.co.uk wrote: > > Hi list, > > I'm following this guide: > https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pods-hostname-and-subdomain-fields > > I wish to have each pod in a deployment have a unique hostname, which allows > another pod to contact each of the autoscaled pods by hostname. > > However, although the guide makes sense for individual pods, it does not work > for deployments, as due to the lack of parameterisation each pod hostname set > would be the same. > > Can anyone think of a way around this? > > I've considered StatefulSet, but the lifecycle of the pods doesn't really fit > this model. > > thanks > > James M > > -- > 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.