Added restrictive network policy

This commit is contained in:
florian committed 2026-10-14 16:31:54 +02:00
1 parent 6af724b376
commit 4c29110a7e
1 file changed
+26
@@ -0,0 +1,26 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: backend-pull-notifications-access
namespace: app-notifications
spec:
podSelector:
matchLabels:
app: backend-pull-notifications
policyTypes:
- Ingress
ingress:
- from:
- podSelector:
matchLabels:
app: backend-api-internal
ports:
- protocol: TCP
port: 8101
- from:
- ipBlock:
cidr: 193.24.210.114/32
ports:
- protocol: TCP
port: 9000