From 76a89520e1fdeb81509b02e5f94808ca313a92f1 Mon Sep 17 00:00:00 2001 From: Raiko Oll Date: Tue, 17 Feb 2026 15:17:53 +0200 Subject: [PATCH] NetworkPolicy --- templates/NetworkPolicy.yaml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/templates/NetworkPolicy.yaml b/templates/NetworkPolicy.yaml index d1debf4..960c496 100644 --- a/templates/NetworkPolicy.yaml +++ b/templates/NetworkPolicy.yaml @@ -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