Hi, I prepare to migrate my Docker infrastructure to Kubernetes. Now I am using Docker+SWARM
But, I can’t find information how to manage internal kubernetes DNS.
Maybe someone can help me.
I have that case:
- I have WAN infrastructure with domain,com - We have our DNSs
- I’ve just created Kubernetes cluster with 3 nodes
- I have created 3 namespaces inside of K8s as stages ( UAT,PRE-PROD,PROD)
- All of this namespaces will have have replica sets ( with nginx,php-fpm)
5.For all statges I would like to have unique subdomain per stage example:
When I will create Replica set for namespace UAT, I would like to start PODs (nginx and php-fpm) with service name in my domain:
svc,namespace,domain,com for example: web1,uat,domain,com
I my infrastructure DNS I can set forward DNS request to Kubernetes stack.
Finally I would like to reach host web1,uat,domain,com from outside of Kubernetes cluster.
The question is, How to configure Kubernetes cluster for it.
Thanks, I hope it is clear what I try to do