Use redis 5 on k8s & add selector

master
Philipp Trulson 5 years ago
parent 97b9098eb9
commit 3b9281501a

@ -5,6 +5,11 @@ metadata:
namespace: mailu-mailserver
spec:
replicas: 1
selector:
matchLabels:
app: mailu-redis
role: mail
tier: backend
template:
metadata:
labels:
@ -13,29 +18,28 @@ spec:
tier: backend
spec:
containers:
- name: redis
image: redis:4.0-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
- 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
volumes:
- name: redisdata
persistentVolumeClaim:
claimName: redis-hdd
---
apiVersion: v1
kind: Service
metadata:
@ -51,6 +55,6 @@ spec:
role: mail
tier: backend
ports:
- name: redis
port: 6379
protocol: TCP
- name: redis
port: 6379
protocol: TCP

@ -0,0 +1 @@
Use Redis 5.0 in kubernetes manifests
Loading…
Cancel
Save