POD IP CONTAINER(S) IMAGE(S) HOST LABELS STATUS
zookeeper 10.244.36.4 zookeeper zookeeper:latest 192.168.0.104/ name=zookeeper Running
I want a way of accessing that host IP (192.168.0.104) at pod startup.
It would be nice to have a kubernetes evironment variable that simply pass the IP of the host the pod is being deployed on. Like services are currently doing with pod IPs.
Thanks,
Stefan
--
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-use...@googlegroups.com.
To post to this group, send email to kubernet...@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.
Thanks Matthias, That’s pretty much where I landed too. I already have a utility that will query the api so I can just add the functionality there. The other option was to send the hostname or service to the router and let the router look up the external ip based off the service name. Either way ends up at the same conclusion. We have to query the service for the information. The last hurdle is making sure we wait to register until the service has an EIP allocated and registered.
Thanks!
--
You received this message because you are subscribed to a topic in the Google Groups "Kubernetes user discussion and Q&A" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/kubernetes-users/m_48qvTg9r0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
kubernetes-use...@googlegroups.com.