# Only set ingress rules once you know which namespace your proxy sends from.
# This sample leaves egress unrestricted for DNS, SMTP and database access.
networkPolicy:
  enabled: true
  spec:
    policyTypes: [Ingress]
    ingress:
      - from:
          - namespaceSelector:
              matchLabels:
                kubernetes.io/metadata.name: gateway-system
        ports: [{port: http, protocol: TCP}]
      - from:
          - podSelector:
              matchLabels:
                app.kubernetes.io/name: vaultwarden-test
        ports: [{port: http, protocol: TCP}]
