apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: aprs-allow-web
  namespace: aprs
spec:
  podSelector:
    matchLabels:
      app: aprs
  policyTypes:
    - Ingress
  ingress:
    # Allow HTTP from the ingress controller
    - from:
        - namespaceSelector:
            matchLabels:
              kubernetes.io/metadata.name: ingress-nginx
      ports:
        - port: 4000
          protocol: TCP
