I am trying to add the redisbloom module to a redis helm chart (bitnami/redis), or ideally the redis cluster chart (bitnami/redis-cluster).
# Chart.yaml
apiVersion: v2
name: my-app
description: My app and redis (with redisbloom module loaded)
type: application
version: 0.1.0
appVersion: 0.1.0
dependencies:
- name: redis
alias: redisbloom
version: 12.1.1
repository: https://charts.bitnami.com/bitnami
Copying the compiled module redisbloom.so
to each pod, and then loading the module either post-start or with master.command=redis-server --load-module=<path>/redisbloom.so
seemed like it could be a potential solution – however from the documentation I can’t see how to copy the binary across for a chart.
I’m also not sure this would be enough on it’s own for a master-slave or cluster situation to work. This Github issue suggests it should be possible to do – but alas there is no documentation that I can find to support it.
Is it possible? Or would I need to create a custom chart, for example, using the RedisBloom docker image [redislabs/rebloom]?
Thanks in advance.
2
Answers
I think you need to build custom redis image based on bitnami image with required module and after that use extraVars var to specify your module like: –loadmodule /usr/lib/redis/modules/redisearch.so
My Dockerfile for that (I need to have redisearch module):
I would use a custom image, for example: