- Notifications
You must be signed in to change notification settings - Fork 77
Redis Standby交付介绍
house edited this page Dec 19, 2022 · 4 revisions
kind: RedisStandby metadata: name: redis-standby-tom namespace: redis spec: app: standby-tom capacity: 2048 dc: hz env: demo image: tongduncloud/redis-standby:1.0 monitorimage: tongduncloud/redis-exporter:1.0 netmode: ClusterIP realname: sa secret: "123" sentinelimage: tongduncloud/sentinel-standby:0.8 storageclass: "" vip: 172.17.128.8 app 关联应用 capacity 容量,单位Mb dc 机房 env 可选(demo,production) image Redis镜像 monitorimage exporter镜像 netmode 网络模式,可选(ClusterIP、NodePort) realname 负责人 secret 密码 sentinelimage 哨兵镜像 storageclass PVC vip 外部网络访问地址,无实际功能 访问地址 10.246.183.54
注意其中一个redis pod处于notReady状态是合理的, 详见实现原理.
# kubectl -n redis get pod redis-standby-tom-0 2/2 Running 0 3h53m redis-standby-tom-1 1/2 Running 0 3h53m sentinel-standby-tom-0 1/1 Running 0 3h53m sentinel-standby-tom-1 1/1 Running 0 3h53m sentinel-standby-tom-2 1/1 Running 0 3h53m # 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