expose internal dns kubernetes

6/28/2019

I am thinking of using K8S namespace for looking up services - using a git hash as the namespace for each version of a server, etc.

https://kubernetes.io/docs/tasks/administer-cluster/namespaces/#understanding-namespaces-and-dns

if you read the above it says internally the dns lookup uses a form:

<service-name>.<namespace-name>.svc.cluster.local

my question is - is there a way to expose the internal dns externally somehow? And specifically I am wondering if there is a way to provide the dns name instead of it being auto-created.

-- Alexander Mills
amazon-eks
eks
kubernetes

0 Answers