Redis on Kubernetes (LV.2)

Redis Sentinel

ในกรณีนี้เราใช้ Helm Bitnami ในการติดตั้ง

value file ชื่อ redis-sentinel.values.yaml โดยมี content ดังนี้

image:
  registry: mirror.gcr.io
architecture: replication
sentinel:
  enabled: true
auth:
  sentinel: false
replica:
  disableCommands: []
  resources:
    requests:
      memory: 1Gi
      cpu: 100m
    limits:
      memory: 1Gi
  persistence:
    enabled: false

ติดตั้งด้วยคำสั่งดังนี้

helm upgrade --install redis oci://registry-1.docker.io/bitnamicharts/redis -n harbor -f redis-sentinel.values.yaml

ตัวอย่างนี้ disable sentinel auth เพราะ harbor มี bug authen

และไม่ทำ persistence เนื่องจาก data ที่เก็บเป็นแค่ cache สามารถ loss ได้

Last updated

Was this helpful?