diff --git a/infrastructure/monitoring/kustomization.yaml b/infrastructure/monitoring/kustomization.yaml index 8fcc611e7f9e8d15310390f6975c9fab09e1e248..ab59d14815fde1d48aeffa9e7d0d849be151eaab 100644 --- a/infrastructure/monitoring/kustomization.yaml +++ b/infrastructure/monitoring/kustomization.yaml @@ -5,3 +5,4 @@ resources: - namespace.yaml - repository.yaml - release.yaml + - ../../shared/networkpolicies/allow-from-same-namespace.yaml diff --git a/shared/networkpolicies/allow-from-same-namespace.yaml b/shared/networkpolicies/allow-from-same-namespace.yaml new file mode 100644 index 0000000000000000000000000000000000000000..237d3a8d1fd8a05d661bf96fc74f78f05705717c --- /dev/null +++ b/shared/networkpolicies/allow-from-same-namespace.yaml @@ -0,0 +1,10 @@ +--- +apiVersion: networking.k8s.io/v1 +kind: NetworkPolicy +name: allow-from-same-namespace +data: + spec: + podSelector: {} + ingress: + - from: + - podSelector: {}