diff --git a/namespaces/live.cloud-platform.service.justice.gov.uk/tom-namespace-dev/05-networkpolicy.yaml b/namespaces/live.cloud-platform.service.justice.gov.uk/tom-namespace-dev/05-networkpolicy.yaml new file mode 100644 index 00000000000..95302191ae4 --- /dev/null +++ b/namespaces/live.cloud-platform.service.justice.gov.uk/tom-namespace-dev/05-networkpolicy.yaml @@ -0,0 +1,27 @@ +apiVersion: networking.k8s.io/v1 +kind: NetworkPolicy +metadata: + name: default + namespace: tom-namespace-dev +spec: + podSelector: {} + policyTypes: + - Ingress + ingress: + - from: + - podSelector: {} +--- +kind: NetworkPolicy +apiVersion: networking.k8s.io/v1 +metadata: + name: allow-ingress-controllers + namespace: tom-namespace-dev +spec: + podSelector: {} + policyTypes: + - Ingress + ingress: + - from: + - namespaceSelector: + matchLabels: + component: ingress-controllers