👤
Novice Handbook
  • Novice Handbook
  • Guide
  • Internet และ Web
    • HTML
  • Computer Language
    • Basic Computer Language (LV.1)
    • C Language (LV.1)
    • Python3 (LV.1)
  • Operating System
    • Linux
      • Basic Linux (LV.1)
  • TOOLS
    • Text Editor
      • Vim Editor
    • Source Control
      • GitLab
        • GitLab for small site (LV.1)
    • Container
      • Docker
        • Docker (LV.1)
        • Docker (LV.2)
      • Kubernetes
        • Kubernetes Intro (LV.0)
        • Kubernetes Basic (LV.1)
        • Kubernetes Intermediate (LV.2)
        • Helm (LV.2)
        • RKE2 (LV.3)
        • K3S (LV.3)
        • K3D (LV.3)
    • Repository
      • Harbor
        • Harbor for small site (LV.1)
        • Harbor for enterprise (LV.2)
    • Database
      • Redis
        • Redis on Docker Compose (LV.1)
        • Redis on Kubernetes (LV.2)
      • Elastic Stack
        • Elasticsearch & Kibana for small site (LV.1)
    • Observability
      • Prometheus
        • Prometheus for small site (LV.1)
        • Prometheus Operator (LV.2)
    • Security
      • Certbot (LV.1)
      • Falco
      • Hashicorp Vault
    • Collaboration
      • Nextcloud
Powered by GitBook
On this page

Was this helpful?

  1. TOOLS
  2. Database
  3. Redis

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 ได้

PreviousRedis on Docker Compose (LV.1)NextElastic Stack

Last updated 7 months ago

Was this helpful?