Network policy

This commit is contained in:
Raiko Oll
2026-02-17 14:34:53 +02:00
parent 0cf4f155de
commit 77ef9348f9

View File

@@ -0,0 +1,31 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: {{ .Release.Name }}-dragonfly-ingress-lockdown
spec:
podSelector:
matchLabels:
app: {{ .Release.Name }}-redis
policyTypes:
- Ingress
ingress:
- from:
- podSelector:
matchLabels:
app: {{ .Release.Name }}
ports:
- protocol: TCP
port: 6378
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: monitoring
ports:
- protocol: TCP
port: 5432
# - protocol: TCP
# port: 9121