Skip to content

Network Policy

Official documentation: About network policy

Basics

  1. Based on labeling or annotations
  2. Empty label selector match all
  3. Rules for allowing
    • Ingress -> who can connect to this POD
    • Egress -> where can this POD connect to
  4. Rules
    • traffic is allowed unless a Network Policy selecting the POD
    • traffic is denied if pod is selected in policie but none of them have any rules allowing it
    • => You can only write rules that allow traffic!
    • Scope: Namespace

Demo Network Policies

Please check


Last update: October 12, 2021
Back to top