To install as a dependency chart, add the following to your requirements.yaml
, or Chart.yaml
:
dependencies:
- name: redis
repository: https://favish.github.io/helm-redis
version: 1.1.0
Update the values.yaml
for configuration options.
redis:
image:
repository: redis
tag: "4-alpine"
redisExporter:
image:
repository: "oliver006/redis_exporter"
tag: "v0.14"
metrics:
enabled: false
resources:
requests:
cpu: 100m
memory: 1G
args: ["--maxmemory 50mb", "--maxmemory-policy allkeys-lfu"]
Do not forget to execute this command to download the dependencies for the main Helm chart.
helm dependency update
NOTE: make sure to pair Redis image version with appropriate Redis metrics export version. Visit https://github.com/oliver006/redis_exporter for more information.
By the way, if you want to use Redis 7, these images should fit:
redis:
image:
repository: redis
tag: "7-alpine"
redisExporter:
image:
repository: "oliver006/redis_exporter"
tag: "v1.67.0"
Check out values.yaml for all available options.
To update the chart, please follow the steps below:
- Clone the project
[email protected]:favish/helm-redis.git
- Make the changes, note down new version in CHANGELOG.md with the changes and commit them.
- Tag new version and push the changes.
Example:
git tag -a 1.1.0 -m "Release 1.1.0"
git push origin 1.1.0
// or
git push origin --tags
-
Verify new chart version release. Access the
gh-pages
branch to see the new chart packageredis-VERSION.tgz
-
Draft a new release on GitHub with the new version and attach the chart package.
- Visit: https://github.com/favish/helm-redis/releases/new
- Choose the tag version you just created.
- Release title: put in the version
- Content, use following template, replace
PREV_VERSION
andNEW_VERSION
with the actual version numbers.:
## What's Changed - Added values to config Redis image and version. - Added values to config Redis Metrics exporter image and version. **Full Changelog**: https://github.com/favish/helm-redis/compare/PREV_VERSION...NEW_VERSION
- Click on
Publish release