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 namespace: mailu-mailserver
spec: spec:
replicas: 1 replicas: 1
selector:
matchLabels:
app: mailu-redis
role: mail
tier: backend
template: template:
metadata: metadata:
labels: labels:
@ -14,7 +19,7 @@ spec:
spec: spec:
containers: containers:
- name: redis - name: redis
image: redis:4.0-alpine image: redis:5-alpine
imagePullPolicy: Always imagePullPolicy: Always
volumeMounts: volumeMounts:
- mountPath: /data - mountPath: /data
@ -35,7 +40,6 @@ spec:
persistentVolumeClaim: persistentVolumeClaim:
claimName: redis-hdd claimName: redis-hdd
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:

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