Service Discovery and Namespaces
Learn about service discovery in the context of namespaces.
We'll cover the following...
Every Kubernetes object gets a name in the cluster address space, and we can partition the address space with Namespaces.
Cluster address space
The cluster address space is a DNS domain that we usually call the cluster domain. On most clusters, it’s cluster.local, and object names have to be unique within it. For example, we can only have one Service called cer in the default Namespace, and it will be called cer.default.svc.cluster.local.
Long names like this are called fully qualified domain names (<object-name>.<namespace>.svc.cluster.local.
We can use Namespaces to partition the address space below the cluster domain. For example, if our cluster has two Namespaces called dev and prod, the address space will ...