From c25cc96830b91f75b3b358ac92257b98d356dd02 Mon Sep 17 00:00:00 2001 From: Hoan To Date: Thu, 2 Nov 2023 11:15:20 +0100 Subject: [PATCH] egress connect2ftapi --- templates/netpol_egress-connect2ftapi.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 templates/netpol_egress-connect2ftapi.yaml diff --git a/templates/netpol_egress-connect2ftapi.yaml b/templates/netpol_egress-connect2ftapi.yaml new file mode 100644 index 0000000..86f2830 --- /dev/null +++ b/templates/netpol_egress-connect2ftapi.yaml @@ -0,0 +1,19 @@ +apiVersion: networking.k8s.io/v1 +kind: NetworkPolicy +metadata: + name: allow-connect2ftapi +spec: + podSelector: + matchLabels: + app: connect + policyTypes: + - Egress + egress: + - to: + - ipBlock: + cidr: 85.215.61.180/32 + ports: + - protocol: TCP + port: 80 # Assuming the URL is accessed over HTTP + - protocol: TCP + port: 443 # Assuming the URL is accessed over HTTPS \ No newline at end of file