How Namespaces Affect Service’s DNS
Explore how Kubernetes namespaces impact service DNS resolution and access. Understand the DNS naming convention for services within namespaces and practice accessing services across different namespaces to enhance resource organization skills.
We'll cover the following...
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 ...