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: podSelector:
matchLabels: matchLabels:
app: memelord-raiko-redis app: memelord-raiko-redis
app.kubernetes.io/name: dragonfly
policyTypes: policyTypes:
- Ingress - Ingress
ingress: ingress:
- from: # App -> Redis
- podSelector: - from:
matchLabels: - podSelector:
app: memelord matchLabels:
ports: app: memelord-raiko
- protocol: TCP ports:
port: 6379 - protocol: TCP
- from: # Dragonfly replication port: 6379
- podSelector: - from:
matchLabels: - podSelector:
app: memelord-raiko-redis matchLabels:
app.kubernetes.io/name: dragonfly app: memelord-raiko-redis
ports: ports:
- protocol: TCP - protocol: TCP
port: 9999 port: 6379
--- ---
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
kind: NetworkPolicy kind: NetworkPolicy