Operations 6 min read

Master RedisInsight: Install, Configure, and Use on Linux and Kubernetes

This guide walks through installing RedisInsight on Linux, setting environment variables, launching the service, deploying it with Kubernetes, and using its GUI to monitor and manage Redis instances, complete with command examples and configuration details.

macrozheng
macrozheng
macrozheng
Master RedisInsight: Install, Configure, and Use on Linux and Kubernetes

RedisInsight is an intuitive GUI tool for managing Redis, offering monitoring of memory, connections, hit rate, uptime, and built‑in CLI interaction with Redis modules. It uniquely supports Redis Cluster, provides browser‑based key search and editing, SSL/TLS connections, and memory analysis.

1. Installing RedisInsight on Linux

Download the package from https://redis.com/redis-enterprise/redis-insight/, extract it, move it to /usr/local/redisinsight/redisinsight-1.11.0, and make it executable:

[root@Redis ~]# ls
anaconda-ks.cfg  redisinsight-linux64-1.11.0
[root@Redis ~]# mkdir /usr/local/redisinsight
[root@Redis ~]# mv redisinsight-linux64-1.11.0 /usr/local/redisinsight/redisinsight-1.11.0
[root@Redis ~]# chmod +x /usr/local/redisinsight/redisinsight-1.11.0

Configure environment variables in ~/.bash_profile:

# export REDISINSIGHT_HOST=192.168.1.1
# export REDISINSIGHT_HOST_DIR=/usr/local/redisinsight/.redisinsight
# source ~/.bash_profile

Key variables: REDISINSIGHT_PORT – listening port (default 8001) REDISINSIGHT_HOST – IP address (default 0.0.0.0) LOG_DIR – log directory (default REDISINSIGHT_HOST_DIR) REDISINSIGHT_HOST_DIR – data directory (default ~/.redisinsight)

Start the service in the background:

# nohup /usr/local/redisinsight/redisinsight-linux64-1.4.0 &
# ps aux | grep redis   # verify the process

2. Deploying RedisInsight on Kubernetes

Create a redisinsight.yaml defining a Service and Deployment:

apiVersion: v1
kind: Service
metadata:
  name: redisinsight-service
spec:
  type: NodePort
  ports:
  - port: 80
    targetPort: 8001
    nodePort: 31888
  selector:
    app: redisinsight
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: redisinsight
spec:
  replicas: 1
  selector:
    matchLabels:
      app: redisinsight
  template:
    metadata:
      labels:
        app: redisinsight
    spec:
      containers:
      - name: redisinsight
        image: redislabs/redisinsight:1.7.0
        imagePullPolicy: IfNotPresent
        volumeMounts:
        - name: db
          mountPath: /db
        ports:
        - containerPort: 8001
          protocol: TCP
      volumes:
      - name: db
        emptyDir: {}

Apply the manifest:

# kubectl apply -f redisinsight.yaml

3. Using RedisInsight

Install Redis if not already present, then start it with appropriate configuration (IP, password, daemonize, etc.). Access the RedisInsight UI via the configured IP and port (default 8001). The interface displays various Redis metrics, allows data operations, and provides memory analysis tools.

Examples of Redis installation commands:

# wget https://download.redis.io/releases/redis-6.2.6.tar.gz
# tar zxf redis-6.2.6.tar.gz
# cd redis-6.2.6
# make PREFIX=/usr/local/redis install
# sed -i '/^bind 127.0.0.1/s/127.0.0.1/192.168.1.1/g' redis.conf
# sed -i '/protected-mode/s/yes/no/g' redis.conf
# sed -i '/daemonize/s/no/yes/g' redis.conf
# sed -i '/requirepass/s/foobared/123123/g' redis.conf
# cp redis.conf /usr/local/redis/
# /usr/local/redis/bin/redis-server /usr/local/redis/redis.conf

After launching RedisInsight, you can view real‑time Redis information, perform CRUD operations through the GUI, and analyze memory usage directly within the tool.

GUIKubernetesRedisRedisInsight
macrozheng
Written by

macrozheng

Dedicated to Java tech sharing and dissecting top open-source projects. Topics include Spring Boot, Spring Cloud, Docker, Kubernetes and more. Author’s GitHub project “mall” has 50K+ stars.

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.