skip to content
Alvin Lucillo

Allow ingress netpol

/ 1 min read

💻 Tech

To allow all incoming connections in a namespace, just declare a network policy with following specs:

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: allow-all-ingress
spec:
  podSelector: {}
  ingress:
  - {}
  policyTypes:
  - Ingress