#15 simplistic approach to single node redis cacher

This commit is contained in:
j 2025-08-04 00:15:39 +10:00
parent 04af60892e
commit fd1505a934

View file

@ -14,11 +14,22 @@ spec:
labels: labels:
app: redis app: redis
spec: spec:
nodeSelector:
role: dck
containers: containers:
- name: redis - name: redis
image: redis:7 image: redis:7
ports: ports:
- containerPort: 6379 - containerPort: 6379
volumeMounts:
- name: redis-data
mountPath: /data
volumes:
- name: redis-data
hostPath:
path: /dpool/services/redis/data
type: DirectoryOrCreate
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
@ -30,4 +41,5 @@ spec:
app: redis app: redis
ports: ports:
- port: 6379 - port: 6379
targetPort: 6379