1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-14 10:53:30 +02:00
Mailu/docs/kubernetes/mailu/redis.yaml

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 22:01:36 +02: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 22:01:36 +02: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 22:01:36 +02:00
- name: redis
port: 6379
protocol: TCP