diff --git a/stable/redis-ha/Chart.yaml b/stable/redis-ha/Chart.yaml index 6f0e87c9a0..f4ab9b6c61 100644 --- a/stable/redis-ha/Chart.yaml +++ b/stable/redis-ha/Chart.yaml @@ -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 diff --git a/stable/redis-ha/README.md b/stable/redis-ha/README.md index 162f66bd4b..94fb1e2cbb 100644 --- a/stable/redis-ha/README.md +++ b/stable/redis-ha/README.md @@ -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` | diff --git a/stable/redis-ha/templates/redis-haproxy-service.yaml b/stable/redis-ha/templates/redis-haproxy-service.yaml index a216cd79da..7e0130bc84 100644 --- a/stable/redis-ha/templates/redis-haproxy-service.yaml +++ b/stable/redis-ha/templates/redis-haproxy-service.yaml @@ -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 }}