apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: aprs-allow-cluster namespace: aprs spec: podSelector: matchLabels: app: aprs policyTypes: - Ingress ingress: # Allow Erlang distribution ports from other aprs pods - from: - podSelector: matchLabels: app: aprs ports: - port: 4369 protocol: TCP - port: 9000 protocol: TCP