From 7fa06cdef6a582b3a2971b4a8a45d8062d70aaa6 Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Tue, 24 Oct 2017 14:20:13 +0530 Subject: [PATCH] [stable/redis] release 1.0.0 (#2380) * redis: mount persistent volume at `/bitnami` * redis: upgrade to redis 4.0 image * redis: bump version to `0.11.0`, new minor series * redis: bump chart version to 1.0.0 and update the `appVersion` * redis: updated volume mountpath mention in readme * redis: replace use of `initContainers` with the specification of `securityContext` * fix linter errors --- stable/redis/Chart.yaml | 4 ++-- stable/redis/README.md | 2 +- stable/redis/templates/deployment.yaml | 5 ++++- stable/redis/values.yaml | 3 +-- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/stable/redis/Chart.yaml b/stable/redis/Chart.yaml index 8bdb201799..680a78f573 100644 --- a/stable/redis/Chart.yaml +++ b/stable/redis/Chart.yaml @@ -1,6 +1,6 @@ name: redis -version: 0.10.2 -appVersion: 3.2.9 +version: 1.0.0 +appVersion: 4.0.2 description: Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets. keywords: - redis diff --git a/stable/redis/README.md b/stable/redis/README.md index 3bd4a3ff54..4db4fe27a9 100644 --- a/stable/redis/README.md +++ b/stable/redis/README.md @@ -104,7 +104,7 @@ after a successful install. ## Persistence -The [Bitnami Redis](https://github.com/bitnami/bitnami-docker-redis) image stores the Redis data and configurations at the `/bitnami/redis` path of the container. +The [Bitnami Redis](https://github.com/bitnami/bitnami-docker-redis) image stores the Redis data and configurations at the `/bitnami` path of the container. By default, the chart mounts a [Persistent Volume](http://kubernetes.io/docs/user-guide/persistent-volumes/) volume at this location. The volume is created using dynamic volume provisioning. If a Persistent Volume Claim already exists, specify it during installation. diff --git a/stable/redis/templates/deployment.yaml b/stable/redis/templates/deployment.yaml index 9627897fb6..99c62c03f9 100644 --- a/stable/redis/templates/deployment.yaml +++ b/stable/redis/templates/deployment.yaml @@ -13,6 +13,9 @@ spec: labels: app: {{ template "redis.fullname" . }} spec: + securityContext: + runAsUser: 1001 + fsGroup: 1001 {{- if .Values.nodeSelector }} nodeSelector: {{ toYaml .Values.nodeSelector | indent 8 }} @@ -61,7 +64,7 @@ spec: {{ toYaml .Values.resources | indent 10 }} volumeMounts: - name: redis-data - mountPath: /bitnami/redis + mountPath: /bitnami {{- if .Values.metrics.enabled }} - name: metrics image: "{{ .Values.metrics.image }}:{{ .Values.metrics.imageTag }}" diff --git a/stable/redis/values.yaml b/stable/redis/values.yaml index e6426207fb..e855be4d06 100644 --- a/stable/redis/values.yaml +++ b/stable/redis/values.yaml @@ -1,7 +1,7 @@ ## Bitnami Redis image version ## ref: https://hub.docker.com/r/bitnami/redis/tags/ ## -image: bitnami/redis:3.2.9-r2 +image: bitnami/redis:4.0.2-r0 ## Specify a imagePullPolicy ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images @@ -86,4 +86,3 @@ networkPolicy: ## (with the correct destination port). ## allowExternal: true -