Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸ‘· πŸ§‘β€πŸ’» Single Replica Redis Cluster #1039

Merged
merged 2 commits into from
Sep 17, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions tilt/cloudapi/redis.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,40 @@
# https://github.com/bitnami/charts/tree/main/bitnami/redis-cluster
fullnameOverride: redis

redis:
podAnnotations:
sidecar.istio.io/proxyCPU: 10m
# podLabels:
# sidecar.istio.io/inject: "false"
# https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15
resourcesPreset: nano

lifecycleHooks:
postStart:
exec:
command:
- /bin/sh
- -c
- |-
until redis-cli -h localhost -p 6379 ping; do
echo "Waiting for Redis to be ready..."
sleep 1
done
redis-cli CLUSTER RESET
redis-cli CLUSTER SET-CONFIG-EPOCH 1
redis-cli CLUSTER ADDSLOTS $(seq 0 16383)

cluster:
nodes: 1
replicas: 0

password: redis

tls:
enabled: false
autoGenerated: true # use self signed cert
authClients: false # do not require clients to auth with certs

persistentVolumeClaimRetentionPolicy:
enabled: true
whenDeleted: Delete
Loading