Created
May 18, 2022 23:57
-
-
Save jithin-scaria/0413c9011a355e6b6040c562c159a8f6 to your computer and use it in GitHub Desktop.
Redis High availability with Sentinel on Kubernetes(K8s) configurations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: redis-config | |
namespace: redis | |
data: | |
redis.conf: | | |
# Redis High availability with Sentinel on Kubernetes(K8s) configurations | |
# ----------------------------------------------------------------------- | |
bind 0.0.0.0 | |
protected-mode yes | |
# configurations for snaposhot and AOF | |
# read more : https://redis.io/docs/manual/persistence/ | |
dbfilename dump.rdb | |
dir /data | |
appendonly yes | |
appendfilename "appendonly.aof" | |
# Enabled ACL based auth. | |
protected-mode yes | |
# This is used by the replics nodes to communicate with master to replicate the data. | |
# we are using a user called "replication" for this, and the a strong pwd for the same is given in masterauth | |
masterauth `5$!DfwSJ.Y(d:@M | |
masteruser replication | |
# this is the second ConfiMap will be mounted to. it has the list of uses needed. | |
aclfile /conf/acl/users.acl | |
# port, each redis nodes will be used | |
port 6379 | |
# More configurations are optional, if not provided, redis will consider default values ------ | |
# ------ More details on configuration : https://redis.io/docs/manual/config/ ------ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment