[stable/redis-ha] Added configurable node port (#18071)

* [stable/redis-ha] Added configurable node port

Signed-off-by: Diego Solórzano <diego.solorzano@meteologica.com>

* [stable/redis-ha] Bump redis version

Signed-off-by: Diego Solórzano <diego.solorzano@meteologica.com>
This commit is contained in:
diegosolor
2019-10-20 23:55:37 -07:00
committed by Kubernetes Prow Robot
parent 7511944c3c
commit edd26abc34
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ keywords:
- redis
- keyvalue
- database
version: 3.8.0
version: 3.9.0
appVersion: 5.0.5
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
+2 -1
View File
@@ -92,7 +92,8 @@ The following table lists the configurable parameters of the Redis chart and the
| `haproxy.image.pullPolicy`| HAProxy Image PullPolicy | `IfNotPresent` |
| `haproxy.annotations` | HAProxy template annotations | `{}` |
| `haproxy.resources` | HAProxy resources | `{}` |
| `haproxy.service.type` | HAProxy service type "ClusterIP" or "LoadBalancer" | `ClusterIP` |
| `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 | `{}` |
| `haproxy.hapreadport.enable` | Enable a read only port for redis slaves | `false` |
| `haproxy.hapreadport.port` | Haproxy port for read only redis slaves | `6380` |
@@ -19,6 +19,9 @@ spec:
port: {{ .Values.redis.port }}
protocol: TCP
targetPort: redis
{{- if and (eq .Values.haproxy.service.type "NodePort") .Values.haproxy.service.nodePort }}
nodePort: {{ .Values.haproxy.service.nodePort }}
{{- end }}
{{- if .Values.haproxy.readOnly.enabled }}
- name: haproxyreadonly
port: {{ .Values.haproxy.readOnly.port }}