---
# Allow the app to communicate with the api.
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
  name: pod-from-pod-permit-editor-api
  namespace: default
  labels:
    name: editor-app
    part-of: tno
    version: 1.0.0
    component: editor
    managed-by: kustomize
    created-by: jeremy.foster
spec:
  #description: Allow api pod(s) to receive communication from app pod(s).
  podSelector:
    matchLabels:
      solution: tno
      app: api
  ingress:
    - from:
        - podSelector:
            matchLabels:
              solution: tno
              app: editor
