I have a Minikube installation in which I created a simple hello-world deployment like this:
kubectl create deployment hello-node \ --image=gcr.io/hello-minikube-zero-install/hello-node
I exposed the deployment via a service in the following way:
kubectl expose deployment hello-node --type=LoadBalancer --port=8080
Now If I call:
http://<local cluster ip>:8080 it prints "Hello World!" as expected.
What I want to achieve:
I want to expose different deployments in the same cluster to different sub-domains of the cluster. For instance, deployment
I want to test this locally because later I will do the same on a real cluster.
Question: How to test DNS configurations of services locally? How to define sub-domains in services?