diff --git a/k8s/webrtc-be/templates/networkpolicy.yaml b/k8s/webrtc-be/templates/networkpolicy.yaml new file mode 100644 index 0000000..2869e5a --- /dev/null +++ b/k8s/webrtc-be/templates/networkpolicy.yaml @@ -0,0 +1,28 @@ +apiVersion: networking.k8s.io/v1 +kind: NetworkPolicy +metadata: + name: {{ .Release.Name }}-allow-coturn + namespace: webrtc-be +spec: + podSelector: + matchLabels: + app: webrtc-be + policyTypes: + - Ingress + - Egress + ingress: + - from: + - namespaceSelector: + matchLabels: + kubernetes.io/metadata.name: coturn + podSelector: + matchLabels: + app: coturn + egress: + - to: + - namespaceSelector: + matchLabels: + kubernetes.io/metadata.name: coturn + podSelector: + matchLabels: + app: coturn