How Namespaces Affect Service’s DNS
Learn how namespaces affect service’s DNS.
We'll cover the following...
Accessing service’s DNS using namespace
As we have seen before, when we create a service, Kubernetes will allow us to access that service with a DNS entry using the service name. So if we have a service called my-service
, we can access it with something like $ curl http://my-service
.
These DNS entries are also scoped by namespace, so the path will be <service-name>.<namespace-name>
, and when the ...