Namespaces

In Kubernetes all the Kubernetes Objects like Pod, Deployment are created under Namespaces, this enables object isolation and security, upon cluster startup the below namespaces are created

  • kube-system
  • kube-public
  • default

Namespaces can have their own set of policies, such as Resource Quota for compute to ensure that each namespace is allocated the required resources, and Limit Ranges allow us to limit the resources on a Pod / Container level

Kubernetes Namespaces

Link to original

To access pods in a different namespace, you are to follow the following format <pod-name>.<namespace>.svc.cluster.local if the pod is in the same namespace you can just connect using the pod name, and the Kube DNS will handle the DNS resolution for us