Container Orchestration
medium

Pregunta de Container Orchestration #019e3a4f

Enunciado de la Pregunta
Container Orchestration
#kubernetes
#pod
#linux-namespaces
#network-namespace
#containers
Medio

What Linux namespace is shared by default by containers running within a Kubernetes Pod?

A

Host Network

B

Network

Correcto
C

Process ID

D

Process Name

Explicación Oficial / Explicaciones de la Comunidad

In Kubernetes, a Pod is the smallest deployable unit that can contain one or more containers. All containers within the same Pod share the same Linux namespaces, including the Network namespace. This means they share the same IP address, port space, loopback interface, and network stack. This design allows containers in a Pod to communicate with each other via localhost and simplifies networking. The correct answer is the Network namespace. The Host Network option is incorrect because containers in a Pod do not share the host's network namespace by default; they get their own network namespace unless hostNetwork: true is set. The Process ID namespace is not shared by default; each container typically has its own PID namespace unless shareProcessNamespace: true is specified in the Pod spec. Process Name is not a Linux namespace; the relevant namespace for process isolation is the PID namespace.