We are going to explore how DNS resolution in Kubernetes works. First we create a
namespace, then we create a
expose it via
service. Afterwards, a second
pod is used to perform DNS queries against the Kubernetes DNS Resolver to get the IP address of the service.
First we need to start minikube to get the cluster running.
This command may throw errors. Just wait some time and proceed with the example or run the command again.
kubectl get services
Set up Alias