From 43889c4ad57aaf0cb790c1fc501dd6865f5042a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilhem=20Barth=C3=A9s?= Date: Fri, 19 Apr 2024 13:40:47 +1000 Subject: [PATCH] wip: add blanket network policy for skaffold opening all ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Guilhem Barthés --- .../networkpolicy-internet-skaffold.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 examples/k8s-resources/networkpolicy-internet-skaffold.yaml diff --git a/examples/k8s-resources/networkpolicy-internet-skaffold.yaml b/examples/k8s-resources/networkpolicy-internet-skaffold.yaml new file mode 100644 index 000000000..927f4814a --- /dev/null +++ b/examples/k8s-resources/networkpolicy-internet-skaffold.yaml @@ -0,0 +1,17 @@ +apiVersion: networking.k8s.io/v1 +kind: NetworkPolicy +metadata: + name: skaffold-local-ingress-allow-all +spec: + ingress: + - from: + - ipBlock: + cidr: 0.0.0.0/0 + egress: + - to: + - ipBlock: + cidr: 0.0.0.0/0 + podSelector: {} + policyTypes: + - Ingress + - Egress \ No newline at end of file