From 8482f77a4757a0ba2e4f5b7427ad77cf91a7eb4f Mon Sep 17 00:00:00 2001 From: Erki Aas Date: Fri, 15 Sep 2023 11:40:37 +0300 Subject: [PATCH] asterisk: add network policies --- asterisk/network-policies.yml | 29 +++++++++++++++++++++++++++++ asterisk/networkpolicy-base.yml | 1 + 2 files changed, 30 insertions(+) create mode 100644 asterisk/network-policies.yml create mode 120000 asterisk/networkpolicy-base.yml diff --git a/asterisk/network-policies.yml b/asterisk/network-policies.yml new file mode 100644 index 0000000..b7c0d4d --- /dev/null +++ b/asterisk/network-policies.yml @@ -0,0 +1,29 @@ +--- +apiVersion: networking.k8s.io/v1 +kind: NetworkPolicy +metadata: + name: asterisk +spec: + podSelector: + matchLabels: + app: asterisk + policyTypes: + - Ingress + - Egress + ingress: + - from: + - ipBlock: + cidr: 100.101.0.0/16 + - from: + - ipBlock: + cidr: 100.102.0.0/16 + - from: + - ipBlock: + cidr: 81.90.125.224/32 + - from: + - ipBlock: + cidr: 195.222.16.36/32 + egress: + - to: + - ipBlock: + cidr: 195.222.16.36/32 diff --git a/asterisk/networkpolicy-base.yml b/asterisk/networkpolicy-base.yml new file mode 120000 index 0000000..e84a698 --- /dev/null +++ b/asterisk/networkpolicy-base.yml @@ -0,0 +1 @@ +../shared/networkpolicy-base.yml \ No newline at end of file