From fd1505a9343b315b6eeaed8c70a49678a35d571f Mon Sep 17 00:00:00 2001 From: j Date: Mon, 4 Aug 2025 00:15:39 +1000 Subject: [PATCH] #15 simplistic approach to single node redis cacher --- deployments/databases/redis.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/deployments/databases/redis.yaml b/deployments/databases/redis.yaml index 33d045c..5c6f090 100644 --- a/deployments/databases/redis.yaml +++ b/deployments/databases/redis.yaml @@ -14,11 +14,22 @@ spec: labels: app: redis spec: + nodeSelector: + role: dck containers: - name: redis image: redis:7 ports: - containerPort: 6379 + volumeMounts: + - name: redis-data + mountPath: /data + volumes: + - name: redis-data + hostPath: + path: /dpool/services/redis/data + type: DirectoryOrCreate + --- apiVersion: v1 kind: Service @@ -30,4 +41,5 @@ spec: app: redis ports: - port: 6379 + targetPort: 6379