Master RedisInsight: Install, Configure, and Deploy Redis GUI on Kubernetes
This guide explains how Redis, a high‑performance in‑memory database, works with the RedisInsight visual tool, covering its key features, step‑by‑step installation on Linux, environment‑variable configuration, service startup, Kubernetes deployment via YAML, and basic usage for monitoring, data manipulation, and memory analysis.
RedisInsight Overview
Redis is an open‑source high‑performance in‑memory key‑value store that can greatly improve server performance. RedisInsight is a visual management tool that provides design, development, and optimization functions for Redis applications, allowing queries, analysis, and interactive CLI operations.
1. RedisInsight Features
Only GUI tool that supports Redis Cluster.
Browser‑based interface for searching keys, viewing and editing data.
Supports SSL/TLS connections and provides memory analysis.
2. Installing and Using RedisInsight
2.1 Physical Installation
[root@Redis ~]# ls</code>
<code>anaconda-ks.cfg redisinsight-linux64-1.11.0</code>
<code>[root@Redis ~]# mkdir /usr/local/redisinsight</code>
<code>[root@Redis ~]# mv redisinsight-linux64-1.11.0 /usr/local/redisinsight/redisinsight-1.11.0</code>
<code>[root@Redis ~]# chmod +x /usr/local/redisinsight/redisinsight-1.11.02.2 Configure Environment Variables
[root@Redis ~]# echo "export REDISINSIGHT_HOST=192.168.1.1" >> ~/.bash_profile</code>
<code>[root@Redis ~]# echo "export REDISINSIGHT_HOST_DIR=/usr/local/redisinsight/.redisinsight" >> ~/.bash_profile</code>
<code>[root@Redis ~]# source ~/.bash_profileKey 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).
2.3 Start RedisInsight Service
[root@Redis ~]# nohup /usr/local/redisinsight/redisinsight-linux64-1.4.0 &</code>
<code>[root@Redis ~]# ps aux | grep redis # verify the process2.4 Kubernetes Deployment
apiVersion: v1</code>
<code>kind: Service</code>
<code>metadata:</code>
<code> name: redisinsight-service</code>
<code>spec:</code>
<code> type: NodePort</code>
<code> ports:</code>
<code> - port: 80</code>
<code> targetPort: 8001</code>
<code> nodePort: 31888</code>
<code> selector:</code>
<code> app: redisinsight</code>
<code>---</code>
<code>apiVersion: apps/v1</code>
<code>kind: Deployment</code>
<code>metadata:</code>
<code> name: redisinsight</code>
<code> labels:</code>
<code> app: redisinsight</code>
<code>spec:</code>
<code> replicas: 1</code>
<code> selector:</code>
<code> matchLabels:</code>
<code> app: redisinsight</code>
<code> template:</code>
<code> metadata:</code>
<code> labels:</code>
<code> app: redisinsight</code>
<code> spec:</code>
<code> containers:</code>
<code> - name: redisinsight</code>
<code> image: redislabs/redisinsight:1.7.0</code>
<code> imagePullPolicy: IfNotPresent</code>
<code> volumeMounts:</code>
<code> - name: db</code>
<code> mountPath: /db</code>
<code> ports:</code>
<code> - containerPort: 8001</code>
<code> protocol: TCP</code>
<code> volumes:</code>
<code> - name: db</code>
<code> emptyDir: {} [root@Redis ~]# kubectl apply -f redisinsight.yaml3. Basic Usage of RedisInsight
3.1 Install Redis (if not already installed)
[root@Redis ~]# wget https://download.redis.io/releases/redis-6.2.6.tar.gz</code>
<code>[root@Redis ~]# tar zxf redis-6.2.6.tar.gz</code>
<code>[root@Redis ~]# cd redis-6.2.6</code>
<code>[root@Redis redis-6.2.6]# make PREFIX=/usr/local/redis install</code>
<code>[root@Redis redis-6.2.6]# sed -i '/^bind 127.0.0.1/s/127.0.0.1/192.168.1.1/g' redis.conf</code>
<code>[root@Redis redis-6.2.6]# sed -i '/protected-mode/s/yes/no/g' redis.conf</code>
<code>[root@Redis redis-6.2.6]# sed -i '/daemonize/s/no/yes/g' redis.conf</code>
<code>[root@Redis redis-6.2.6]# sed -i '/requirepass/s/foobared/123123/g' redis.conf</code>
<code>[root@Redis redis-6.2.6]# sed -i '/requirepass 123123/s/^#//g' redis.conf</code>
<code>[root@Redis redis-6.2.6]# cp redis.conf /usr/local/redis/</code>
<code>[root@Redis redis-6.2.6]# /usr/local/redis/bin/redis-server /usr/local/redis/redis.conf3.2 Access RedisInsight UI
Open a browser and navigate to http://<span>YOUR_IP</span>:8001 (or the port you configured). The UI displays Redis server information, key statistics, and connection details.
3.3 View Redis Metrics
The dashboard shows memory usage, hit rate, uptime, and other vital metrics.
3.4 Perform Operations via UI
You can execute commands, edit keys, and manage data directly from the interface.
3.5 Memory Analysis
RedisInsight provides visual memory analysis to help identify large keys and memory fragmentation.
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.
