Skip to content

Redis Cluster交付介绍

gaoshengL edited this page Jan 7, 2022 · 7 revisions

资源实例

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
app          关联应用,注意name目前需要要求等于redis-{app},如示例
capacity     容量,单位Mb
dc           机房
env          可选(demo,staging,prodction)
image        redis镜像
monitorimage exporter镜像
netmode      网络模式(ClusterIP、NodePort)
proxyimage   代理镜像
proxysecret  代理密码
realname     负责人
secret       redis密码
size         集群group数量
storageclass pvc
vip          无实际功能



<h3 style="color: #333333; background-image: none; margin-top: 10px; margin-bottom: 10px; font-family: Arial, Helvetica, FreeSans, sans-serif;">资源访问以及展示</h3>
访问地址
实际地址 10.246.94.225
代理地址 10.246.183.54

注意两个地址均 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 6379/TCP 4h redis-cluster-trump ClusterIP 10.246.94.225 6379/TCP 4h1m


</div>

Clone this wiki locally