Skip to content

Commit 75e3e24

Browse files
Bump redis image to 8.2.2 (0.140) (#12150)
Bump redis image to 8.2.2 (#12149) * Add instructions on how to build the images for future updates * Bump redis image to 8.2.2 * Bump redis-sentinel image to 8.2.2 * Change to store Bitnami redis images in gcr.io/mirrornode --------- Signed-off-by: Steven Sheehy <[email protected]>
1 parent 6b39e3f commit 75e3e24

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

charts/README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,20 @@ release:
227227
kubectl delete $(kubectl get pvc -o name)
228228
```
229229

230+
## Development
231+
232+
The Helm charts use Bitnami for various chart components. Newer Bitnami images are no longer freely available, so we
233+
need to periodically build their images from source and publish them to our own registry. After building the images
234+
using the below steps, update the `values.yaml` to use the newly built images.
235+
236+
```bash
237+
export REDIS_VERSION="8.2.2"
238+
git checkout https://github.com/bitnami/containers.git
239+
cd containers/bitnami/
240+
docker buildx build --platform linux/amd64,linux/arm64 -t gcr.io/mirrornode/redis:${REDIS_VERSION} --provenance false --push redis/8.2/debian-12
241+
docker buildx build --platform linux/amd64,linux/arm64 -t gcr.io/mirrornode/redis-sentinel:${REDIS_VERSION} --provenance false --push redis-sentinel/8.2/debian-12
242+
```
243+
230244
## Troubleshooting
231245

232246
To troubleshoot a pod, you can view its log and describe the pod to see its status. See the
@@ -238,7 +252,9 @@ kubectl logs -f --tail=100 "${POD_NAME}"
238252
kubectl logs -f --prefix --tail=10 -l app.kubernetes.io/name=importer
239253
```
240254

241-
To change an application's properties, create a [ConfigMap](https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#create-configmaps-from-files) and mount it into the container by specifying `volumes`
255+
To change an application's properties, create
256+
a [ConfigMap](https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#create-configmaps-from-files)
257+
and mount it into the container by specifying `volumes`
242258
and `volumeMounts` in your custom values.yaml. Create the ConfigMap from a properties file:
243259

244260
```shell script

charts/hedera-mirror/values.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,9 @@ redis:
226226
enabled: true
227227
host: "{{ .Release.Name }}-redis"
228228
image:
229-
repository: bitnamilegacy/redis
229+
registry: gcr.io
230+
repository: mirrornode/redis
231+
tag: 8.2.2
230232
kubectl:
231233
image:
232234
repository: rancher/kubectl
@@ -264,7 +266,9 @@ redis:
264266
sentinel:
265267
enabled: true
266268
image:
267-
repository: bitnamilegacy/redis-sentinel
269+
registry: gcr.io
270+
repository: mirrornode/redis-sentinel
271+
tag: 8.2.2
268272
masterSet: mirror
269273
persistence:
270274
enabled: true

0 commit comments

Comments
 (0)