hostPort
A pod setting that opens a port on the node's own IP address and forwards it to a container.
In more detail
Only one pod per node can use a given host port, and anyone who can reach the node can reach the pod on it. Baseline restricts it because it bypasses the normal Service networking and ties the pod to the node's network.
Related terms
- Pod Security Standards — Three built-in Kubernetes security profiles, called privileged, baseline and restricted, that define how locked down a pod must be.
- host network — A mode where a container uses the host network directly instead of getting its own.
Taught in
- Kubernetes Pod Security Standards: Baseline & Restricted — Cloud Security & DevSecOps Engineering