温馨提示:如果使用了REDISINSIGHT_HOST, REDISINSIGHT_PORT, REDISINSIGHT_HOME_DIR and LOG_DIR等环境变量便会出现如下提示。
1 2
WARNING 2022-09-20 05:56:33,461 redisinsight_startup REDISINSIGHT_HOST, REDISINSIGHT_PORT, REDISINSIGHT_HOME_DIR and LOG_DIR environment variables will be deprecated in the version v1.9. Please use RIHOST, RIPORT, RIHOMEDIR and RILOGDIR environment variables for setting host, port, db directory and log directory respectively.
teeredisinsight-1.13.0.yaml<<'EOF' # RedisInsight service with name 'redisinsight-service' apiVersion:v1 kind:Service metadata: name:redisinsight-service namespace:dev spec: type:LoadBalancer ports: - port:8001 targetPort:8001 selector: app:redisinsight --- # RedisInsight persistant storage apiVersion:v1 kind:PersistentVolumeClaim metadata: name:redisinsight-pv-claim namespace:dev labels: app:redisinsight spec: accessModes: -ReadWriteOnce resources: requests: storage:2Gi storageClassName:managed-nfs-storage --- # RedisInsight deployment with name 'redisinsight' apiVersion:apps/v1 kind:Deployment metadata: name:redisinsight# deployment name namespace:dev labels: app:redisinsight# deployment label spec: replicas:1# a single replica pod strategy: type:Recreate selector: matchLabels: app:redisinsight# which pods is the deployment managing, as defined by the pod template template:# pod template metadata: labels: app:redisinsight# label for pod/s spec: volumes: - name:db persistentVolumeClaim: claimName:redisinsight-pv-claim initContainers: - name:init image:busybox command: -/bin/sh -'-c' -| chown -R 1001 /db resources:{} volumeMounts: - name:db mountPath:/db terminationMessagePath:/dev/termination-log terminationMessagePolicy:File containers: - name:redisinsight# Container name (DNS_LABEL, unique) image:redislabs/redisinsight:1.13.0# Hub Image imagePullPolicy:IfNotPresent# Pull Policy env: - name:RIHOST value:"0.0.0.0" - name:RIPORT value:"8001" volumeMounts: - name:db mountPath:/db ports: - containerPort:8001# exposed container port and protocol protocol:TCP livenessProbe: httpGet: path:/healthcheck/# exposed RI endpoint for healthcheck port:8001# exposed container port initialDelaySeconds:5# number of seconds to wait after the container starts to perform liveness probe periodSeconds:5# period in seconds after which liveness probe is performed failureThreshold:1# number of liveness probe failures after which container restarts EOF
$ kubectl create namespace dev namespace/dev created
$ kubectl apply -f redisinsight-1.13.0.yaml service/redisinsight-service created persistentvolumeclaim/redisinsight-pv-claim created deployment.apps/redisinsight created
$ kubectl get pod,svc -n dev -o wide NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES pod/redisinsight-55d44b5bb-xzggg 1/1 Running 0 3m22s 10.66.182.217 weiyigeek-226 <none> <none>
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR service/redisinsight-service LoadBalancer 10.108.198.8 <pending> 80:31793/TCP 3m22s app=redisinsight
root@weiyigeek:/usr/local/bin# wget https://download.redisinsight.redis.com/latest/RedisInsight-v2-linux-x86_64.AppImage root@weiyigeek:/usr/local/bin# mv RedisInsight-v2-linux-x86_64.AppImage RedisInsight root@weiyigeek:/usr/local/bin# chmod +x RedisInsight root@weiyigeek:/usr/local/bin# ./RedisInsight /tmp/.mount_RedisIuCY68M/redisinsight: error while loading shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory /tmp/.mount_RedisIbwUuBs/redisinsight: error while loading shared libraries: libatk-bridge-2.0.so.0: cannot open shared object file: No such file or directory /tmp/.mount_RedisIb3qNiD/redisinsight: error while loading shared libraries: libcups.so.2: cannot open shared object file: No such file or directory /tmp/.mount_RedisI9GZsHC/redisinsight: error while loading shared libraries: libgtk-3.so.0: cannot open shared object file: No such file or directory
问题2.运行 RedisInsight-v2-linux-x86_64 时出现 root without --no-sandbox is not supported 错误提示:
错误信息:[0920/133850.852943:FATAL:electron_main_delegate.cc(292)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180. 解决办法:在低权限用户中执行./RedisInsight启动RedisInsight服务即可。
方式1.请访问本博主的B站【WeiyiGeek】首页关注UP主, 将自动随机获取解锁验证码。
Method 2.Please visit 【My Twitter】. There is an article verification code in the homepage.
方式3.扫一扫下方二维码,关注本站官方公众号
回复:验证码
将获取解锁(有效期7天)本站所有技术文章哟!