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