ipBlock
A NetworkPolicy peer that allows traffic to or from a CIDR range, optionally with exceptions, instead of selecting pods by label.
In more detail
Pod IP addresses change constantly, so ipBlock is meant for addresses outside the cluster rather than for pods. It is used for destinations outside the cluster, such as a database network or the internet.
Related terms
- NetworkPolicy — A Kubernetes object that controls which pods may send traffic to or receive traffic from which others, by labels, namespaces and IP ranges.
- CIDR — A compact way to write a range of IP addresses, such as 10.244.0.0/24, where the number after the slash says how many leading bits are fixed.
Taught in
- The Metadata Endpoint And The Kubelet's Front Door — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Kubernetes NetworkPolicies & Microsegmentation — Cloud Security & DevSecOps Engineering
- Seven Findings, Two Owners: The 4Cs And Shared Responsibility — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Overview Sprint: Four Findings Before The Auditor — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- One Dash Too Many: Segmentation With Network Policy — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep