diff --git a/stable/redis/Chart.yaml b/stable/redis/Chart.yaml index d0e086b492..44f5c950fb 100644 --- a/stable/redis/Chart.yaml +++ b/stable/redis/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: redis -version: 6.4.3 +version: 6.4.4 appVersion: 4.0.14 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: diff --git a/stable/redis/README.md b/stable/redis/README.md index 20806599b9..87c0cbecdd 100644 --- a/stable/redis/README.md +++ b/stable/redis/README.md @@ -173,6 +173,7 @@ The following table lists the configurable parameters of the Redis chart and the | `volumePermissions.image.repository` | Init container volume-permissions image name | `bitnami/minideb` | | `volumePermissions.image.tag` | Init container volume-permissions image tag | `latest` | | `volumePermissions.image.pullPolicy` | Init container volume-permissions image pull policy | `IfNotPresent` | +| `volumePermissions.resources ` | Init container volume-permissions CPU/Memory resource requests/limits | {} | | `slave.service.type` | Kubernetes Service type (redis slave) | `ClusterIP` | | `slave.service.nodePort` | Kubernetes Service nodePort (redis slave) | `nil` | | `slave.service.annotations` | annotations for redis slave service | {} | @@ -209,6 +210,7 @@ The following table lists the configurable parameters of the Redis chart and the | `sysctlImage.tag` | sysctlImage Init container tag | `latest` | | `sysctlImage.pullPolicy` | sysctlImage Init container pull policy | `Always` | | `sysctlImage.mountHostSys` | Mount the host `/sys` folder to `/host-sys` | `false` | +| `sysctlImage.resources` | sysctlImage Init container CPU/Memory resource requests/limits | {} | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, diff --git a/stable/redis/templates/redis-slave-deployment.yaml b/stable/redis/templates/redis-slave-deployment.yaml index 8239e5a5f1..3e97de00b8 100644 --- a/stable/redis/templates/redis-slave-deployment.yaml +++ b/stable/redis/templates/redis-slave-deployment.yaml @@ -166,6 +166,8 @@ spec: initContainers: - name: init-sysctl image: {{ template "redis.sysctl.image" . }} + resources: +{{ toYaml .Values.sysctlImage.resources | indent 10 }} {{- if .Values.sysctlImage.mountHostSys }} volumeMounts: - name: host-sys diff --git a/stable/redis/values-production.yaml b/stable/redis/values-production.yaml index aa2bbfb3cd..ee0a25bd13 100644 --- a/stable/redis/values-production.yaml +++ b/stable/redis/values-production.yaml @@ -380,6 +380,10 @@ volumePermissions: # pullSecrets: # - myRegistryKeySecretName resources: {} + # resources: + # requests: + # memory: 128Mi + # cpu: 100m ## Redis config file ## ref: https://redis.io/topics/config @@ -404,3 +408,7 @@ sysctlImage: # - myRegistryKeySecretName mountHostSys: false resources: {} + # resources: + # requests: + # memory: 128Mi + # cpu: 100m diff --git a/stable/redis/values.yaml b/stable/redis/values.yaml index e707a5641f..790038d211 100644 --- a/stable/redis/values.yaml +++ b/stable/redis/values.yaml @@ -381,6 +381,10 @@ volumePermissions: # pullSecrets: # - myRegistryKeySecretName resources: {} + # resources: + # requests: + # memory: 128Mi + # cpu: 100m ## Redis config file ## ref: https://redis.io/topics/config @@ -405,3 +409,7 @@ sysctlImage: # - myRegistryKeySecretName mountHostSys: false resources: {} + # resources: + # requests: + # memory: 128Mi + # cpu: 100m