Skip to content

Commit

Permalink
chore: upgrade redis-ha chart to 4.17.8, HAProxy v2.6.2 (#10032)
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Marquis <34fathombelow@protonmail.com>
  • Loading branch information
34fathombelow committed Aug 12, 2022
1 parent b38ff17 commit 36231d2
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 62 deletions.
7 changes: 4 additions & 3 deletions docs/operator-manual/upgrading/2.4-2.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ The bundled Kustomize version has been upgraded from 4.4.1 to 4.5.5.

## Upgraded HAProxy version

The HAProxy version in the HA manifests has been upgraded from 2.0.25 to 2.5.7. To read about the changes/improvements,
The HAProxy version in the HA manifests has been upgraded from 2.0.25 to 2.6.2. To read about the changes/improvements,
see the HAProxy major release announcements ([2.1.0](https://www.mail-archive.com/haproxy@formilux.org/msg35491.html),
[2.2.0](https://www.mail-archive.com/haproxy@formilux.org/msg37852.html),
[2.3.0](https://www.mail-archive.com/haproxy@formilux.org/msg38812.html),
[2.4.0](https://www.mail-archive.com/haproxy@formilux.org/msg40499.html), and
[2.5.0](https://www.mail-archive.com/haproxy@formilux.org/msg41508.html).
[2.4.0](https://www.mail-archive.com/haproxy@formilux.org/msg40499.html),
[2.5.0](https://www.mail-archive.com/haproxy@formilux.org/msg41508.html), and
[2.6.0](https://www.mail-archive.com/haproxy@formilux.org/msg42371.html).
6 changes: 3 additions & 3 deletions manifests/ha/base/redis-ha/chart/requirements.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: redis-ha
repository: https://dandydeveloper.github.io/charts
version: 4.17.2
digest: sha256:2e3eed4046cbb7084d461dba66b99088abaf91d843e707decfba3b7723260f2c
generated: "2022-07-18T14:06:59.32663-04:00"
version: 4.17.8
digest: sha256:24b66a7cd8e6ec23502173bd643bfaa66cf0d062df0361370226754e0cedda12
generated: "2022-08-12T00:12:34.042365707-07:00"
2 changes: 1 addition & 1 deletion manifests/ha/base/redis-ha/chart/requirements.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dependencies:
- name: redis-ha
version: 4.17.2
version: 4.17.8
repository: https://dandydeveloper.github.io/charts
48 changes: 20 additions & 28 deletions manifests/ha/base/redis-ha/chart/upstream.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
labels:
heritage: Helm
release: argocd
chart: redis-ha-4.17.2
chart: redis-ha-4.17.8
app: argocd-redis-ha
---
# Source: redis-ha/charts/redis-ha/templates/redis-haproxy-serviceaccount.yaml
Expand All @@ -21,7 +21,7 @@ metadata:
labels:
heritage: Helm
release: argocd
chart: redis-ha-4.17.2
chart: redis-ha-4.17.8
app: argocd-redis-ha
---
# Source: redis-ha/charts/redis-ha/templates/redis-ha-configmap.yaml
Expand All @@ -33,12 +33,14 @@ metadata:
labels:
heritage: Helm
release: argocd
chart: redis-ha-4.17.2
chart: redis-ha-4.17.8
app: argocd-redis-ha
data:
redis.conf: |
dir "/data"
port 6379
rename-command FLUSHDB ""
rename-command FLUSHALL ""
bind 0.0.0.0
maxmemory 0
maxmemory-policy volatile-lru
Expand Down Expand Up @@ -106,7 +108,6 @@ data:
identify_master() {
echo "Identifying redis master (get-master-addr-by-name).."
echo " using sentinel (argocd-redis-ha), sentinel group name (argocd)"
echo " $(date).."
MASTER="$(sentinel_get_master_retry 3)"
if [ -n "${MASTER}" ]; then
echo " $(date) Found redis master (${MASTER})"
Expand Down Expand Up @@ -219,14 +220,12 @@ data:
else
echo " ping (${MASTER}:${REDIS_PORT})"
fi
echo " $(date).."
if [ "$(redis_ping_retry 3)" != "PONG" ]; then
echo " $(date) Can't ping redis master (${MASTER})"
echo "Attempting to force failover (sentinel failover).."
if [ "$SENTINEL_PORT" -eq 0 ]; then
echo " on sentinel (${SERVICE}:${SENTINEL_TLS_PORT}), sentinel grp (${MASTER_GROUP})"
echo " $(date).."
if redis-cli -h "${SERVICE}" -p "${SENTINEL_TLS_PORT}" --tls --cacert /tls-certs/ca.crt --cert /tls-certs/redis.crt --key /tls-certs/redis.key sentinel failover "${MASTER_GROUP}" | grep -q 'NOGOODSLAVE' ; then
echo " $(date) Failover returned with 'NOGOODSLAVE'"
echo "Setting defaults for this pod.."
Expand All @@ -235,7 +234,6 @@ data:
fi
else
echo " on sentinel (${SERVICE}:${SENTINEL_PORT}), sentinel grp (${MASTER_GROUP})"
echo " $(date).."
if redis-cli -h "${SERVICE}" -p "${SENTINEL_PORT}" sentinel failover "${MASTER_GROUP}" | grep -q 'NOGOODSLAVE' ; then
echo " $(date) Failover returned with 'NOGOODSLAVE'"
echo "Setting defaults for this pod.."
Expand All @@ -252,7 +250,6 @@ data:
else
echo " sentinel (${SERVICE}:${SENTINEL_PORT}), sentinel grp (${MASTER_GROUP})"
fi
echo " $(date).."
MASTER="$(sentinel_get_master)"
if [ "${MASTER}" ]; then
echo " $(date) Found redis master (${MASTER})"
Expand Down Expand Up @@ -378,7 +375,6 @@ data:
identify_master() {
echo "Identifying redis master (get-master-addr-by-name).."
echo " using sentinel (argocd-redis-ha), sentinel group name (argocd)"
echo " $(date).."
MASTER="$(sentinel_get_master_retry 3)"
if [ -n "${MASTER}" ]; then
echo " $(date) Found redis master (${MASTER})"
Expand Down Expand Up @@ -491,14 +487,12 @@ data:
else
echo " ping (${MASTER}:${REDIS_PORT})"
fi
echo " $(date).."
if [ "$(redis_ping_retry 3)" != "PONG" ]; then
echo " $(date) Can't ping redis master (${MASTER})"
echo "Attempting to force failover (sentinel failover).."
if [ "$SENTINEL_PORT" -eq 0 ]; then
echo " on sentinel (${SERVICE}:${SENTINEL_TLS_PORT}), sentinel grp (${MASTER_GROUP})"
echo " $(date).."
if redis-cli -h "${SERVICE}" -p "${SENTINEL_TLS_PORT}" --tls --cacert /tls-certs/ca.crt --cert /tls-certs/redis.crt --key /tls-certs/redis.key sentinel failover "${MASTER_GROUP}" | grep -q 'NOGOODSLAVE' ; then
echo " $(date) Failover returned with 'NOGOODSLAVE'"
echo "Setting defaults for this pod.."
Expand All @@ -507,7 +501,6 @@ data:
fi
else
echo " on sentinel (${SERVICE}:${SENTINEL_PORT}), sentinel grp (${MASTER_GROUP})"
echo " $(date).."
if redis-cli -h "${SERVICE}" -p "${SENTINEL_PORT}" sentinel failover "${MASTER_GROUP}" | grep -q 'NOGOODSLAVE' ; then
echo " $(date) Failover returned with 'NOGOODSLAVE'"
echo "Setting defaults for this pod.."
Expand All @@ -524,7 +517,6 @@ data:
else
echo " sentinel (${SERVICE}:${SENTINEL_PORT}), sentinel grp (${MASTER_GROUP})"
fi
echo " $(date).."
MASTER="$(sentinel_get_master)"
if [ "${MASTER}" ]; then
echo " $(date) Found redis master (${MASTER})"
Expand Down Expand Up @@ -772,7 +764,7 @@ metadata:
labels:
heritage: Helm
release: argocd
chart: redis-ha-4.17.2
chart: redis-ha-4.17.8
app: argocd-redis-ha
data:
redis_liveness.sh: |
Expand Down Expand Up @@ -822,7 +814,7 @@ metadata:
app: redis-ha
heritage: "Helm"
release: "argocd"
chart: redis-ha-4.17.2
chart: redis-ha-4.17.8
rules:
- apiGroups:
- ""
Expand All @@ -841,7 +833,7 @@ metadata:
app: redis-ha
heritage: "Helm"
release: "argocd"
chart: redis-ha-4.17.2
chart: redis-ha-4.17.8
component: argocd-redis-ha-haproxy
rules:
- apiGroups:
Expand All @@ -861,7 +853,7 @@ metadata:
app: redis-ha
heritage: "Helm"
release: "argocd"
chart: redis-ha-4.17.2
chart: redis-ha-4.17.8
subjects:
- kind: ServiceAccount
name: argocd-redis-ha
Expand All @@ -880,7 +872,7 @@ metadata:
app: redis-ha
heritage: "Helm"
release: "argocd"
chart: redis-ha-4.17.2
chart: redis-ha-4.17.8
component: argocd-redis-ha-haproxy
subjects:
- kind: ServiceAccount
Expand All @@ -900,7 +892,7 @@ metadata:
app: redis-ha
heritage: "Helm"
release: "argocd"
chart: redis-ha-4.17.2
chart: redis-ha-4.17.8
annotations:
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
spec:
Expand Down Expand Up @@ -930,7 +922,7 @@ metadata:
app: redis-ha
heritage: "Helm"
release: "argocd"
chart: redis-ha-4.17.2
chart: redis-ha-4.17.8
annotations:
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
spec:
Expand Down Expand Up @@ -960,7 +952,7 @@ metadata:
app: redis-ha
heritage: "Helm"
release: "argocd"
chart: redis-ha-4.17.2
chart: redis-ha-4.17.8
annotations:
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
spec:
Expand Down Expand Up @@ -990,7 +982,7 @@ metadata:
app: redis-ha
heritage: "Helm"
release: "argocd"
chart: redis-ha-4.17.2
chart: redis-ha-4.17.8
annotations:
spec:
type: ClusterIP
Expand Down Expand Up @@ -1018,7 +1010,7 @@ metadata:
app: redis-ha
heritage: "Helm"
release: "argocd"
chart: redis-ha-4.17.2
chart: redis-ha-4.17.8
component: argocd-redis-ha-haproxy
annotations:
spec:
Expand All @@ -1042,7 +1034,7 @@ metadata:
app: redis-ha
heritage: "Helm"
release: "argocd"
chart: redis-ha-4.17.2
chart: redis-ha-4.17.8
spec:
strategy:
type: RollingUpdate
Expand Down Expand Up @@ -1080,7 +1072,7 @@ spec:
topologyKey: kubernetes.io/hostname
initContainers:
- name: config-init
image: haproxy:2.5.7-alpine
image: haproxy:2.6.2-alpine
imagePullPolicy: IfNotPresent
resources:
{}
Expand All @@ -1100,7 +1092,7 @@ spec:
runAsUser: 1000
containers:
- name: haproxy
image: haproxy:2.5.7-alpine
image: haproxy:2.6.2-alpine
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
Expand Down Expand Up @@ -1148,7 +1140,7 @@ metadata:
app: redis-ha
heritage: "Helm"
release: "argocd"
chart: redis-ha-4.17.2
chart: redis-ha-4.17.8
annotations:
{}
spec:
Expand All @@ -1164,7 +1156,7 @@ spec:
template:
metadata:
annotations:
checksum/init-config: 1a8461b83fdc5614ce24a7d4d15976f9ef3b5c68a35475b5a3f57299c6f48ae8
checksum/init-config: 226aec192d2f29b5355769c9f1fbf093bf36c3a1e15b574b71fb8fe73fd37c05
labels:
release: argocd
app: redis-ha
Expand Down
2 changes: 1 addition & 1 deletion manifests/ha/base/redis-ha/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ redis-ha:
haproxy:
enabled: true
image:
tag: 2.5.7-alpine
tag: 2.6.2-alpine
timeout:
server: 6m
client: 6m
Expand Down
18 changes: 5 additions & 13 deletions manifests/ha/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9819,7 +9819,6 @@ data:
identify_master() {
echo "Identifying redis master (get-master-addr-by-name).."
echo " using sentinel (argocd-redis-ha), sentinel group name (argocd)"
echo " $(date).."
MASTER="$(sentinel_get_master_retry 3)"
if [ -n "${MASTER}" ]; then
echo " $(date) Found redis master (${MASTER})"
Expand Down Expand Up @@ -9932,14 +9931,12 @@ data:
else
echo " ping (${MASTER}:${REDIS_PORT})"
fi
echo " $(date).."
if [ "$(redis_ping_retry 3)" != "PONG" ]; then
echo " $(date) Can't ping redis master (${MASTER})"
echo "Attempting to force failover (sentinel failover).."

if [ "$SENTINEL_PORT" -eq 0 ]; then
echo " on sentinel (${SERVICE}:${SENTINEL_TLS_PORT}), sentinel grp (${MASTER_GROUP})"
echo " $(date).."
if redis-cli -h "${SERVICE}" -p "${SENTINEL_TLS_PORT}" --tls --cacert /tls-certs/ca.crt --cert /tls-certs/redis.crt --key /tls-certs/redis.key sentinel failover "${MASTER_GROUP}" | grep -q 'NOGOODSLAVE' ; then
echo " $(date) Failover returned with 'NOGOODSLAVE'"
echo "Setting defaults for this pod.."
Expand All @@ -9948,7 +9945,6 @@ data:
fi
else
echo " on sentinel (${SERVICE}:${SENTINEL_PORT}), sentinel grp (${MASTER_GROUP})"
echo " $(date).."
if redis-cli -h "${SERVICE}" -p "${SENTINEL_PORT}" sentinel failover "${MASTER_GROUP}" | grep -q 'NOGOODSLAVE' ; then
echo " $(date) Failover returned with 'NOGOODSLAVE'"
echo "Setting defaults for this pod.."
Expand All @@ -9965,7 +9961,6 @@ data:
else
echo " sentinel (${SERVICE}:${SENTINEL_PORT}), sentinel grp (${MASTER_GROUP})"
fi
echo " $(date).."
MASTER="$(sentinel_get_master)"
if [ "${MASTER}" ]; then
echo " $(date) Found redis master (${MASTER})"
Expand Down Expand Up @@ -10219,7 +10214,6 @@ data:
identify_master() {
echo "Identifying redis master (get-master-addr-by-name).."
echo " using sentinel (argocd-redis-ha), sentinel group name (argocd)"
echo " $(date).."
MASTER="$(sentinel_get_master_retry 3)"
if [ -n "${MASTER}" ]; then
echo " $(date) Found redis master (${MASTER})"
Expand Down Expand Up @@ -10332,14 +10326,12 @@ data:
else
echo " ping (${MASTER}:${REDIS_PORT})"
fi
echo " $(date).."
if [ "$(redis_ping_retry 3)" != "PONG" ]; then
echo " $(date) Can't ping redis master (${MASTER})"
echo "Attempting to force failover (sentinel failover).."

if [ "$SENTINEL_PORT" -eq 0 ]; then
echo " on sentinel (${SERVICE}:${SENTINEL_TLS_PORT}), sentinel grp (${MASTER_GROUP})"
echo " $(date).."
if redis-cli -h "${SERVICE}" -p "${SENTINEL_TLS_PORT}" --tls --cacert /tls-certs/ca.crt --cert /tls-certs/redis.crt --key /tls-certs/redis.key sentinel failover "${MASTER_GROUP}" | grep -q 'NOGOODSLAVE' ; then
echo " $(date) Failover returned with 'NOGOODSLAVE'"
echo "Setting defaults for this pod.."
Expand All @@ -10348,7 +10340,6 @@ data:
fi
else
echo " on sentinel (${SERVICE}:${SENTINEL_PORT}), sentinel grp (${MASTER_GROUP})"
echo " $(date).."
if redis-cli -h "${SERVICE}" -p "${SENTINEL_PORT}" sentinel failover "${MASTER_GROUP}" | grep -q 'NOGOODSLAVE' ; then
echo " $(date) Failover returned with 'NOGOODSLAVE'"
echo "Setting defaults for this pod.."
Expand All @@ -10365,7 +10356,6 @@ data:
else
echo " sentinel (${SERVICE}:${SENTINEL_PORT}), sentinel grp (${MASTER_GROUP})"
fi
echo " $(date).."
MASTER="$(sentinel_get_master)"
if [ "${MASTER}" ]; then
echo " $(date) Found redis master (${MASTER})"
Expand Down Expand Up @@ -10443,6 +10433,8 @@ data:
redis.conf: |
dir "/data"
port 6379
rename-command FLUSHDB ""
rename-command FLUSHALL ""
bind 0.0.0.0
maxmemory 0
maxmemory-policy volatile-lru
Expand Down Expand Up @@ -11102,7 +11094,7 @@ spec:
app.kubernetes.io/name: argocd-redis-ha-haproxy
topologyKey: kubernetes.io/hostname
containers:
- image: haproxy:2.5.7-alpine
- image: haproxy:2.6.2-alpine
imagePullPolicy: IfNotPresent
lifecycle: {}
livenessProbe:
Expand Down Expand Up @@ -11138,7 +11130,7 @@ spec:
- /readonly/haproxy_init.sh
command:
- sh
image: haproxy:2.5.7-alpine
image: haproxy:2.6.2-alpine
imagePullPolicy: IfNotPresent
name: config-init
securityContext:
Expand Down Expand Up @@ -11915,7 +11907,7 @@ spec:
template:
metadata:
annotations:
checksum/init-config: 1a8461b83fdc5614ce24a7d4d15976f9ef3b5c68a35475b5a3f57299c6f48ae8
checksum/init-config: 226aec192d2f29b5355769c9f1fbf093bf36c3a1e15b574b71fb8fe73fd37c05
labels:
app.kubernetes.io/name: argocd-redis-ha
spec:
Expand Down

0 comments on commit 36231d2

Please sign in to comment.