redis

云原生redis约 105 字小于 1 分钟

部署

github/bitnamiopen in new window

拉取 charts

helm pull  oci://registry-1.docker.io/bitnamicharts/redis --version 16.13.2

解压

tar -zxvf redis-16.13.2.tgz 

配置

更多配置参考 charts内的 values 或官方文档说明

cat <<EOF > redis-values.yaml
global:
  redis:
    password: Password@0101
master:
  count: 1
  persistence:
    enabled: true
    accessModes:
      - ReadWriteOnce
    size: 8Gi
  resources:
    limits: {}
    requests: {}
replica:
  replicaCount: 1
  persistence:
    enabled: true
    accessModes:
      - ReadWriteOnce
    size: 8Gi
  resources:
    limits: {}
    requests: {}
EOF

安装

helm upgrade --install redis . -f redis-values.yaml -n middleware --create-namespace