Guide to Installing and Using RedisInsight (including Kubernetes Deployment)
This article provides a comprehensive tutorial on installing RedisInsight, configuring its environment variables, running it as a service or in Kubernetes, and using its GUI features to monitor and manage Redis instances, complete with code examples and deployment YAML.
Redis is an open‑source high‑performance in‑memory key‑value store, and RedisInsight is a visual GUI tool for designing, developing, and optimizing Redis applications.
RedisInsight provides features such as cluster support, browser‑based key search and edit, SSL/TLS connections, and memory analysis.
Installation
1. Download the RedisInsight package from https://redis.com/redis‑enterprise/redis‑insight/#insight‑form, 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.02. Set environment variables in ~/.bash_profile :
export REDISINSIGHT_HOST=192.168.1.1
export REDISINSIGHT_HOST_DIR=/usr/local/redisinsight/.redisinsight
source ~/.bash_profile3. Configure optional variables such as REDISINSIGHT_PORT (default 8001), REDISINSIGHT_HOST (default 0.0.0.0), LOG_DIR , and REDISINSIGHT_HOST_DIR .
4. Start the service in the background:
[root@Redis ~]# nohup /usr/local/redisinsight/redisinsight-linux64-1.4.0 &To verify, run ps aux | grep redis .
Kubernetes Deployment
Create a redisinsight.yaml file with a Service of type NodePort (port 80 → targetPort 8001, nodePort 31888) and a Deployment that runs the redislabs/redisinsight:1.7.0 image, mounts a volume at /db , and exposes containerPort 8001.
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
labels:
app: 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 with kubectl apply -f redisinsight.yaml and access the UI via the configured IP and port.
Additionally, the article shows how to install Redis itself, configure its IP, disable protected mode, enable daemonization, set a password, and start the server, then connect to RedisInsight to view metrics, perform operations, and analyze memory usage.
Architecture Digest
Focusing on Java backend development, covering application architecture from top-tier internet companies (high availability, high performance, high stability), big data, machine learning, Java architecture, and other popular fields.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.