Skip to content

Commit

Permalink
[stable/redis-ha] Make emptyDir configurable from values (helm#21489)
Browse files Browse the repository at this point in the history
Signed-off-by: Jeroen Castelein <jeroencastelein11@gmail.com>
  • Loading branch information
JeroennC authored and Ian Levesque committed Jul 13, 2020
1 parent 951d470 commit ca1d9fe
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion stable/redis-ha/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ keywords:
- redis
- keyvalue
- database
version: 4.4.1
version: 4.4.2
appVersion: 5.0.6
description: Highly available Kubernetes implementation of Redis
icon: https://upload.wikimedia.org/wikipedia/en/thumb/6/6b/Redis_Logo.svg/1200px-Redis_Logo.svg.png
Expand Down
2 changes: 2 additions & 0 deletions stable/redis-ha/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ The following table lists the configurable parameters of the Redis chart and the
| `persistentVolume.size` | Size for the volume | 10Gi |
| `persistentVolume.annotations` | Annotations for the volume | `{}` |
| `persistentVolume.reclaimPolicy` | Method used to reclaim an obsoleted volume. `Delete` or `Retain` | `""` |
| `emptyDir` | Configuration of `emptyDir`, used only if persistentVolume is disabled and no hostPath specified | `{}` |
| `exporter.enabled` | If `true`, the prometheus exporter sidecar is enabled | `false` |
| `exporter.image` | Exporter image | `oliver006/redis_exporter` |
| `exporter.tag` | Exporter tag | `v0.31.0` |
Expand All @@ -111,6 +112,7 @@ The following table lists the configurable parameters of the Redis chart and the
| `haproxy.customConfig` | Allows for custom config-haproxy.cfg file to be applied. If this is used then default config will be overwriten | `` |
| `haproxy.extraConfig` | Allows to place any additional configuration section to add to the default config-haproxy.cfg | `` |
| `haproxy.resources` | HAProxy resources | `{}` |
| `haproxy.emptyDir` | Configuration of `emptyDir` | `{}` |
| `haproxy.service.type` | HAProxy service type "ClusterIP", "LoadBalancer" or "NodePort" | `ClusterIP` |
| `haproxy.service.nodePort` | HAProxy service nodePort value (haproxy.service.type must be NodePort) | not set |
| `haproxy.service.annotations` | HAProxy service annotations | `{}` |
Expand Down
3 changes: 2 additions & 1 deletion stable/redis-ha/templates/redis-ha-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -314,5 +314,6 @@ spec:
path: {{ tpl .Values.hostPath.path .}}
{{- else }}
- name: data
emptyDir: {}
emptyDir:
{{ toYaml .Values.emptyDir | indent 10 }}
{{- end }}
6 changes: 4 additions & 2 deletions stable/redis-ha/templates/redis-haproxy-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ spec:
configMap:
name: {{ template "redis-ha.fullname" . }}-configmap
- name: shared-socket
emptyDir: {}
emptyDir:
{{ toYaml .Values.haproxy.emptyDir | indent 10 }}
- name: data
emptyDir: {}
emptyDir:
{{ toYaml .Values.haproxy.emptyDir | indent 10 }}
{{- end }}
3 changes: 3 additions & 0 deletions stable/redis-ha/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ haproxy:

annotations: {}
resources: {}
emptyDir: {}
## Enable sticky sessions to Redis nodes via HAProxy
## Very useful for long-living connections as in case of Sentry for example
stickyBalancing: false
Expand Down Expand Up @@ -357,3 +358,5 @@ hostPath:
# change the owner of the hostPath folder to the user defined in the
# security context
chown: true

emptyDir: {}

0 comments on commit ca1d9fe

Please sign in to comment.