Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/redis-ha/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ keywords:
- redis
- keyvalue
- database
version: 4.35.3
version: 4.35.4
appVersion: 8.2.2
description: This Helm chart provides a highly available Redis implementation with a master/slave configuration and uses Sentinel sidecars for failover management
icon: https://img.icons8.com/external-tal-revivo-shadow-tal-revivo/24/external-redis-an-in-memory-data-structure-project-implementing-a-distributed-logo-shadow-tal-revivo.png
Expand Down
1 change: 1 addition & 0 deletions charts/redis-ha/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ The following table lists the configurable parameters of the Redis chart and the
|-----|------|---------|-------------|
| `haproxy.IPv6.enabled` | Enable HAProxy parameters to bind and consume IPv6 addresses. Enabled by default. | bool | `true` |
| `haproxy.additionalAffinities` | Additional affinities to add to the haproxy pods. | object | `{}` |
| `haproxy.additionalPorts` | Additional ports to expose on HAProxy service and deployment. Each port should have a name, containerPort, and optionally servicePort (defaults to containerPort) | list | `[]` |
| `haproxy.affinity` | Override all other affinity settings for the haproxy pods with a string. | string | `""` |
| `haproxy.annotations` | HAProxy template annotations | object | `{}` |
| `haproxy.checkFall` | haproxy.cfg `check fall` setting | int | `1` |
Expand Down
4 changes: 4 additions & 0 deletions charts/redis-ha/templates/redis-haproxy-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ spec:
- name: metrics-port
containerPort: {{ default "9101" .Values.haproxy.metrics.port }}
{{- end }}
{{- range .Values.haproxy.additionalPorts }}
- name: {{ .name }}
containerPort: {{ .containerPort }}
{{- end }}
resources:
{{ toYaml .Values.haproxy.resources | indent 10 }}
volumeMounts:
Expand Down
6 changes: 6 additions & 0 deletions charts/redis-ha/templates/redis-haproxy-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ spec:
port: {{ .Values.haproxy.metrics.port }}
protocol: TCP
targetPort: metrics-port
{{- end }}
{{- range .Values.haproxy.additionalPorts }}
- name: {{ .name }}
port: {{ .servicePort | default .containerPort }}
protocol: TCP
targetPort: {{ .name }}
{{- end }}
selector:
release: {{ .Release.Name }}
Expand Down
11 changes: 10 additions & 1 deletion charts/redis-ha/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,22 @@ haproxy:
keyName:
# -- Path to mount the secret that contains the certificates. haproxy
certMountPath: /tmp/

# -- Enable read-only redis-slaves
readOnly:
# -- Enable if you want a dedicated port in haproxy for redis-slaves
enabled: false
# -- Port for the read-only redis-slaves
port: 6380
# -- Additional ports to expose on HAProxy service and deployment
# Each port should have a name, containerPort, and optionally servicePort (defaults to containerPort)
additionalPorts: []
# Example:
# additionalPorts:
# - name: custom-port
# containerPort: 8080
# servicePort: 8080
# - name: another-port
# containerPort: 9090
# -- Number of HAProxy instances
replicas: 3
# -- Deployment strategy for the haproxy deployment
Expand Down