Cloud Native 5 min read

One‑Click Deployment of Redis Cluster and RedisInsight on Kubernetes with Bitnami Helm

This guide shows how to use the Bitnami Helm chart to quickly deploy a Redis Cluster in a Kubernetes "redis" namespace, customize its values.yaml, retrieve the auto‑generated password, and add RedisInsight with a persistent volume for web‑based management.

Hacker Afternoon Tea
Hacker Afternoon Tea
Hacker Afternoon Tea
One‑Click Deployment of Redis Cluster and RedisInsight on Kubernetes with Bitnami Helm

Deploy Redis Cluster with Helm

Run the Bitnami Helm chart in the redis namespace to create a Redis Cluster with a single command:

helm repo add bitnami https://charts.bitnami.com/bitnami
helm install -n redis staging bitnami/redis-cluster

The deployment generates a random password for the cluster. Retrieve it with:

export REDIS_PASSWORD=$(kubectl get secret --namespace redis staging-redis-cluster -o jsonpath="{.data.redis-password}" | base64 --decode)

Customize values.yaml

The default chart configuration may not suit every use case. Clone the upstream values.yaml (see the GitHub link) and edit the fields you need. For example, to create a six‑node cluster with one replica per master:

cluster:
  init: true
  # nodes = numberOfMasterNodes + numberOfMasterNodes * replicas
  nodes: 6
  replicas: 1

Apply the changes with:

helm upgrade -n redis -f values.yaml staging

Deploy RedisInsight

RedisInsight provides a Web UI for managing the cluster. A modified manifest adds a PersistentVolumeClaim so data survives pod restarts:

---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: redisinsight-pv-claim
  labels:
    app: redisinsight
    namespace: redis
spec:
  accessModes:
  - ReadWriteOnce
  resources:
    requests:
      storage: 1Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: redisinsight
  namespace: redis
  labels:
    app: redisinsight
spec:
  replicas: 1
  selector:
    matchLabels:
      app: redisinsight
  template:
    metadata:
      labels:
        app: redisinsight
    spec:
      containers:
      - name: redisinsight
        image: redislabs/redisinsight:1.9.0
        imagePullPolicy: IfNotPresent
        securityContext:
          runAsUser: 0
        volumeMounts:
        - name: db
          mountPath: /db
        ports:
        - containerPort: 8001
          protocol: TCP
      volumes:
      - name: db
        persistentVolumeClaim:
          claimName: redisinsight-pv-claim

Save the manifest as redisinsight.yaml and apply it: kubectl apply -f redisinsight.yaml After the deployment finishes, forward the service port to your local machine:

kubectl port-forward deployment/redisinsight -n redis 8001

Open http://localhost:8001 in a browser. In the UI, click “Connect to a Redis Database”, use the cluster service IP and port 6379, the default username default, and the password retrieved earlier. The UI then displays the three master and three replica nodes, key counts, and memory usage for each shard.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

kubernetesRedisClusterRedisInsightHelmBitnami
Hacker Afternoon Tea
Written by

Hacker Afternoon Tea

You might find something interesting here ^_^

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.