2019-11-06 13:59:28 +02:00
|
|
|
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
|