Interactive guide to named ports, service port mapping, and exposing multi-port applications clearly.
Many applications expose more than one interface: app traffic, admin endpoints, metrics, or health ports. Multi-port Services organize those interfaces cleanly.
Core Model
Understand the Concept First
Multiple app interfaces
Applications often need more than one exposed port for different responsibilities.
Named ports required
When a Service exposes multiple ports, each one needs a unique name.
Clear service mapping
Port naming makes Service-to-Pod relationships easier to reason about and debug.
Visual Architecture
Interactive Multi-Port Service Diagrams
Hover over components to see detailed explanations. Switch between views to understand single-port vs multi-port configurations.
Lifecycle Flow
Multi-Port Mapping Flow
1
Pod defines ports
Container ports are declared, often with names like http or metrics.
2
Service selects backend Pods
Labels and selectors identify the application Pods.
3
Service maps each port
Each service port is mapped to the correct targetPort.
4
Clients reach the right interface
Traffic on each named port reaches the intended backend function.
Port names are not cosmetic in multi-port Services; they are part of making the model understandable and valid.