NetworkPolicy

This commit is contained in:
Raiko Oll
2026-02-17 15:17:53 +02:00
parent 6ab4467a25
commit 76a89520e1

View File

@@ -8,25 +8,25 @@ spec:
podSelector:
matchLabels:
app: memelord-raiko-redis
app.kubernetes.io/name: dragonfly
policyTypes:
- Ingress
- Ingress
ingress:
- from:
- podSelector:
matchLabels:
app: memelord
ports:
- protocol: TCP
port: 6379
- from: # Dragonfly replication
- podSelector:
matchLabels:
app: memelord-raiko-redis
app.kubernetes.io/name: dragonfly
ports:
- protocol: TCP
port: 9999
# App -> Redis
- from:
- podSelector:
matchLabels:
app: memelord-raiko
ports:
- protocol: TCP
port: 6379
- from:
- podSelector:
matchLabels:
app: memelord-raiko-redis
ports:
- protocol: TCP
port: 6379
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy