Skip to content

Commit 0975a0d

Browse files
redis-ha Replace invocations of hostname and pidof so Redis minimal images can be used easily (#386)
* Update _configs.tpl * Update values.yaml * Update Chart.yaml * Update values.yaml * Bump Redis HA chart version to 4.35.9 --------- Co-authored-by: Aaron Layfield <Aaron.Layfield@gmail.com>
1 parent f83fc50 commit 0975a0d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

charts/redis-ha/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ keywords:
55
- redis
66
- keyvalue
77
- database
8-
version: 4.35.8
8+
version: 4.35.9
99
appVersion: 8.2.2
1010
description: This Helm chart provides a highly available Redis implementation with a master/slave configuration and uses Sentinel sidecars for failover management
1111
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

charts/redis-ha/templates/_configs.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@
327327
{{- end }}
328328

329329
{{- define "vars.sh" }}
330-
HOSTNAME="$(hostname)"
330+
HOSTNAME="$(cat /proc/sys/kernel/hostname)"
331331
{{- if .Values.ro_replicas }}
332332
RO_REPLICAS="{{ .Values.ro_replicas }}"
333333
{{- end }}

charts/redis-ha/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1104,5 +1104,6 @@ splitBrainDetection:
11041104
failureThreshold: 5
11051105
exec:
11061106
command:
1107-
- pidof
11081107
- sh
1108+
- -c
1109+
- test -d /proc/1

0 commit comments

Comments
 (0)