Add new network policy

This commit is contained in:
Seth Call 2025-12-03 20:23:25 -06:00
parent 0ed9a8b82b
commit 8d1103572f
1 changed files with 28 additions and 0 deletions

View File

@ -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