Skip to content

Latest commit

 

History

History
62 lines (44 loc) · 1.63 KB

README.md

File metadata and controls

62 lines (44 loc) · 1.63 KB

Helm chart for Redis

This Helm chart will install Redis (code) on a Kubernetes cluster. It is based on Bitnami's Helm chart (code).

How to use

  • With Helm (see README for requirements)
# install with default parameters
helm upgrade --install redis devpro/redis --create-namespace \
  --namespace redis

# checks all pods are running after some time
kubectl get pod -n redis

How to create or update the chart

# adds helm chart repository
helm repo add bitnami https://charts.bitnami.com/bitnami

# searches for the latest version
helm search repo -l redis --versions

# manual: update version number in Chart.yaml

# updates Chart.lock
helm dependency update

# checks code style
helm lint

# checks the Kubernetes objects generated from the chart
helm template redis . -f values.yaml \
  --namespace redis > temp.yaml

How to deploy manually from the sources

Sample with a given password

# applies the manifest (add "--debug > output.yaml" in case of issue)
helm upgrade --install redis . -f values.yaml --create-namespace \
  --set redis.auth.password=secretpassword \
  --set redis.replica.replicaCount=1 \
  --namespace redis

# forwards service port for local access
kubectl port-forward service/redis-master 6379:6379 -n redis

# checks the service is up and running with redis-cli
sudo apt install redis-tools
redis-cli -a secretpassword

# cleans up
helm uninstall redis -n redis
kubectl delete ns redis