add redis

This commit is contained in:
2025-03-30 14:09:32 +02:00
parent 0e5c6d4fae
commit 8bbd2ff08a
6 changed files with 124 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis-sentinel
namespace: redis
labels:
app: redis-sentinel
spec:
replicas: 3
selector:
matchLabels:
app: redis-sentinel
template:
metadata:
labels:
app: redis-sentinel
spec:
containers:
- name: redis-sentinel
image: redis:6.2-alpine
ports:
- containerPort: 26379
name: sentinel
command:
- "redis-sentinel"
- "/etc/redis/sentinel.conf"
volumeMounts:
- name: sentinel-config
mountPath: /etc/redis
volumes:
- name: sentinel-config
configMap:
name: redis-sentinel-config