Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Redis Cluster Configuration Example

house edited this page Dec 19, 2022 · 2 revisions

CRD Resource Instance

kind: RedisCluster
metadata:
 name: redis-cluster-trump
 namespace: redis
spec:
 app: cluster-trump
 capacity: 32768
 dc: hz
 env: demo
 image: 10.58.11.90:55000/redis-cluster:0.2
 monitorimage: 10.58.11.90:55000/redis-exporter:1.0
 netmode: ClusterIP
 proxyimage: 10.58.11.90:55000/predixy:1.0
 proxysecret: "123"
 realname: demo
 secret: abc
 size: 3
 storageclass: ""
 vip: 172.17.128.8

Parameter Description

app Associated applications, note that the name currently needs to be equal to redis-{app}, as shown in the example
capacity Capacity, unit Mb
dc Data center
env Optional(demo,staging,prodction)
image Redis image
monitorimage Exporter image
netmode Network mode(ClusterIP、NodePort)
proxyimage Proxy image
proxysecret Proxy secret
realname Admin user name
secret Redis password
size Number of cluster groups
storageclass Kubernetes PVC
vip Reserved function

Resource Access and Display

The resource address is Actual address 10.246.94.225 Proxy address 10.246.183.54

Note that both addresses can access resources, but because predixy is not very sound, it is recommended to use the actual production address to access, and the proxy address can be used as the data leading address

# kubectl -n redis get pod
predixy-redis-cluster-trump-5bd48f6fd8-ftxm4 1/1 Running 0 3h59m
predixy-redis-cluster-trump-5bd48f6fd8-scmwn 1/1 Running 0 3h59m
redis-cluster-trump-0-0 2/2 Running 0 3h59m
redis-cluster-trump-0-1 2/2 Running 0 3h59m
redis-cluster-trump-1-0 2/2 Running 0 3h59m
redis-cluster-trump-1-1 2/2 Running 0 3h59m
redis-cluster-trump-2-0 2/2 Running 0 3h59m
redis-cluster-trump-2-1 2/2 Running 0 3h59m
# kubectl -n redis get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
predixy-redis-cluster-trump ClusterIP 10.246.183.54 <none> 6379/TCP 4h
redis-cluster-trump ClusterIP 10.246.94.225 <none> 6379/TCP 4h1m
Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /