Add new network policy
This commit is contained in:
parent
0ed9a8b82b
commit
8d1103572f
|
|
@ -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
|
||||
Loading…
Reference in New Issue