diff --git a/docs/kubernetes/mailu/redis.yaml b/docs/kubernetes/mailu/redis.yaml index 98471492..f453a3ff 100644 --- a/docs/kubernetes/mailu/redis.yaml +++ b/docs/kubernetes/mailu/redis.yaml @@ -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 diff --git a/towncrier/newsfragments/1308.misc b/towncrier/newsfragments/1308.misc new file mode 100644 index 00000000..8c196ddf --- /dev/null +++ b/towncrier/newsfragments/1308.misc @@ -0,0 +1 @@ +Use Redis 5.0 in kubernetes manifests \ No newline at end of file