1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-06-08 23:46:30 +02:00

61 lines
1.2 KiB
YAML
Raw Normal View History

apiVersion: apps/v1
2018-10-17 07:22:55 +02:00
kind: Deployment
metadata:
name: mailu-redis
namespace: mailu-mailserver
spec:
replicas: 1
2020-01-07 21:01:36 +01:00
selector:
matchLabels:
app: mailu-redis
role: mail
tier: backend
2018-10-17 07:22:55 +02:00
template:
metadata:
labels:
app: mailu-redis
role: mail
tier: backend
spec:
containers:
2020-01-07 21:01:36 +01:00
- name: redis
image: redis:5-alpine
imagePullPolicy: Always
volumeMounts:
- mountPath: /data
name: redisdata
ports:
- containerPort: 6379
name: redis
protocol: TCP
resources:
requests:
memory: 200Mi
cpu: 100m
limits:
memory: 300Mi
cpu: 200m
2018-10-17 07:22:55 +02:00
volumes:
- name: redisdata
persistentVolumeClaim:
claimName: redis-hdd
---
apiVersion: v1
kind: Service
metadata:
name: redis
namespace: mailu-mailserver
labels:
app: mailu-redis
role: mail
tier: backend
spec:
selector:
app: mailu-redis
role: mail
tier: backend
ports:
2020-01-07 21:01:36 +01:00
- name: redis
port: 6379
protocol: TCP