I'm reading the documentation and exploring headless services from kubernetes.
However, I cannot find an official way on externalizing the FQDN names of the headless service to the outside world. I found a couple of links but they are either third party tools or incubation projects, is there a best way to do this with kubernetes 1.6?
Tools that I found so far:
https://github.com/kubernetes-incubator/external-dns
https://github.com/wearemolecule/route53-kubernetes
I'm deploying kubernetes on AWS.
Thanks!
George
Thanks for the quick replay.
Essentially, I have something like the headless service described here https://kubernetes.io/docs/tutorials/stateful-application/zookeeper/ deployed on kubernetes which is running on AWS. I wanna write data to those zookeeper pods from a AWS machine deployed in the same subnet and availability zone as the kubernetes worker nodes. So what I need is some sort of mechanism to map requests from the outside world to one zookeeper node like this one zk-0.zk-headless.default.svc.cluster.local:2181. Is that possible?
Thanks!
On Monday, May 22, 2017 at 5:53:23 PM UTC+2, Tim Hockin wrote:
> In short, you can't. That would require multiple IPs which are
> allocated and deallocated and retargetted as pods come and go. This
> is not supported for now. Maybe you can talk more about what you're
> trying to do?
>
@Matthias thanks for your suggestion, your setup is a bit to complex for me right now.
@Tim so you suggest instead of having a headless service which is pointing to a stateful set with 3 replicas like in this example https://kubernetes.io/docs/tutorials/stateful-application/zookeeper/, to have one service per zookeeper node? And how will this help with accessing the service from outside?
Thanks,
George
On Monday, May 22, 2017 at 9:31:14 PM UTC+2, Tim Hockin wrote:
> Can you set up a proper Service for one or more nodes (one if you care
> which one, more if you don't)?
>
Hello guys,
@Matthias thanks for your suggestion, your setup is a bit to complex for me right now.
@Tim so you suggest instead of having a headless service which is pointing to a stateful set with 3 replicas like in this example https://kubernetes.io/docs/tutorials/stateful-application/zookeeper/, to have one service per zookeeper node? And how will this help with accessing the service from outside?