spurin / diveintokcna

Dive Into Containers, Kubernetes and the Kubernetes Cloud Native Associate Certification
33 stars 11 forks source link

Pod Namespace Network Clarification #30

Open spurin opened 6 months ago

spurin commented 6 months ago

Course Access Location

DiveInto

Course Section

Section 04 - Kubernetes Fundamentals

Quiz Details

Pod Network Namespace Question

Issue Description

As per the slack discussion, the further study section needs to be enriched to include more context on pods and namespaces.

Details to cover in further study:

In a Kubernetes Pod, the network namespace is shared by default among all the containers. This sharing means that all containers in a Pod can communicate with each other using localhost and they have the same network interfaces (including IP address and port space). This does not mean they have to, but by default, they will share the network space.

"Mount": While pods can share volumes, they do not share a mount namespace by default. Each container in a pod has its own mount namespace.

"User": User namespaces are not shared by default. Each container can run with a different user ID.

"UTS": UTS (UNIX Timesharing System) namespaces provide isolation of two system identifiers: the hostname and the NIS domain name. These are not shared by default in a Kubernetes Pod; each container can have its own hostname.

Additional Comments

No response