@@ -1120,6 +1120,7 @@ sentinel:
11201120 ports :
11211121 redis : 6379
11221122 sentinel : 26379
1123+ proxy : 36379
11231124 # # @param sentinel.service.nodePorts.redis Node port for Redis™
11241125 # # @param sentinel.service.nodePorts.sentinel Node port for Sentinel
11251126 # # ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
@@ -1129,6 +1130,7 @@ sentinel:
11291130 # #
11301131 nodePorts :
11311132 redis : " "
1133+ proxy : " "
11321134 sentinel : " "
11331135 # # @param sentinel.service.externalTrafficPolicy Redis™ Sentinel service external traffic policy
11341136 # # ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
@@ -1158,6 +1160,119 @@ sentinel:
11581160 # #
11591161 terminationGracePeriodSeconds : 30
11601162
1163+ # # @section Redis™ Sentinel configuration parameters
1164+ # #
1165+
1166+ proxy :
1167+ # # @param sentinel.enabled Use Redis™ Sentinel on Redis™ pods.
1168+ # # IMPORTANT: this will disable the master and replicas services and
1169+ # # create a single Redis™ service exposing both the Redis and Sentinel ports
1170+ # #
1171+ enabled : true
1172+ # # Bitnami Redis™ Sentinel image version
1173+ # # ref: https://hub.docker.com/r/bitnami/redis-sentinel/tags/
1174+ # # @param sentinel.image.registry Redis™ Sentinel image registry
1175+ # # @param sentinel.image.repository Redis™ Sentinel image repository
1176+ # # @param sentinel.image.tag Redis™ Sentinel image tag (immutable tags are recommended)
1177+ # # @param sentinel.image.pullPolicy Redis™ Sentinel image pull policy
1178+ # # @param sentinel.image.pullSecrets Redis™ Sentinel image pull secrets
1179+ # # @param sentinel.image.debug Enable image debug mode
1180+ # #
1181+ # # todo: support both of amd64 and arm64
1182+ image :
1183+ registry : registry.drycc.cc
1184+ repository : drycc-addons/redis-sentinel
1185+ tag : " 7.0"
1186+ # # Specify a imagePullPolicy
1187+ # # Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
1188+ # # ref: https://kubernetes.io/docs/user-guide/images/#pre-pulling-images
1189+ # #
1190+ pullPolicy : IfNotPresent
1191+ # # Optionally specify an array of imagePullSecrets.
1192+ # # Secrets must be manually created in the namespace.
1193+ # # ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1194+ # # e.g:
1195+ # # pullSecrets:
1196+ # # - myRegistryKeySecretName
1197+ # #
1198+ pullSecrets : []
1199+ # # Enable debug mode
1200+ # #
1201+ debug : false
1202+ # # @param sentinel.command Override default container command (useful when using custom images)
1203+ # #
1204+ command : []
1205+ # # @param sentinel.args Override default container args (useful when using custom images)
1206+ # #
1207+ args : []
1208+ # # @param sentinel.preExecCmds Additional commands to run prior to starting Redis™ Sentinel
1209+ # #
1210+ preExecCmds : []
1211+ # # Configure extra options for Redis™ containers' liveness and readiness probes
1212+ # # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
1213+ # # @param sentinel.startupProbe.enabled Enable startupProbe on Redis™ Sentinel nodes
1214+ # # @param sentinel.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
1215+ # # @param sentinel.startupProbe.periodSeconds Period seconds for startupProbe
1216+ # # @param sentinel.startupProbe.timeoutSeconds Timeout seconds for startupProbe
1217+ # # @param sentinel.startupProbe.failureThreshold Failure threshold for startupProbe
1218+ # # @param sentinel.startupProbe.successThreshold Success threshold for startupProbe
1219+ # #
1220+ startupProbe :
1221+ enabled : true
1222+ initialDelaySeconds : 10
1223+ periodSeconds : 10
1224+ timeoutSeconds : 5
1225+ successThreshold : 1
1226+ failureThreshold : 22
1227+ # # @param sentinel.livenessProbe.enabled Enable livenessProbe on Redis™ Sentinel nodes
1228+ # # @param sentinel.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1229+ # # @param sentinel.livenessProbe.periodSeconds Period seconds for livenessProbe
1230+ # # @param sentinel.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1231+ # # @param sentinel.livenessProbe.failureThreshold Failure threshold for livenessProbe
1232+ # # @param sentinel.livenessProbe.successThreshold Success threshold for livenessProbe
1233+ # #
1234+ livenessProbe :
1235+ enabled : true
1236+ initialDelaySeconds : 20
1237+ periodSeconds : 5
1238+ timeoutSeconds : 5
1239+ successThreshold : 1
1240+ failureThreshold : 5
1241+ # # @param sentinel.readinessProbe.enabled Enable readinessProbe on Redis™ Sentinel nodes
1242+ # # @param sentinel.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1243+ # # @param sentinel.readinessProbe.periodSeconds Period seconds for readinessProbe
1244+ # # @param sentinel.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1245+ # # @param sentinel.readinessProbe.failureThreshold Failure threshold for readinessProbe
1246+ # # @param sentinel.readinessProbe.successThreshold Success threshold for readinessProbe
1247+ # #
1248+ readinessProbe :
1249+ enabled : true
1250+ initialDelaySeconds : 20
1251+ periodSeconds : 5
1252+ timeoutSeconds : 1
1253+ successThreshold : 1
1254+ failureThreshold : 5
1255+ # # Redis™ Sentinel resource requests and limits
1256+ # # ref: https://kubernetes.io/docs/user-guide/compute-resources/
1257+ # # @param sentinel.resources.limits The resources limits for the Redis™ Sentinel containers
1258+ # # @param sentinel.resources.requests The requested resources for the Redis™ Sentinel containers
1259+ # #
1260+ resources :
1261+ limits : {}
1262+ requests : {}
1263+ # # Configure Container Security Context
1264+ # # ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
1265+ # # @param sentinel.containerSecurityContext.enabled Enabled Redis™ Sentinel containers' Security Context
1266+ # # @param sentinel.containerSecurityContext.runAsUser Set Redis™ Sentinel containers' Security Context runAsUser
1267+ # #
1268+ containerSecurityContext :
1269+ enabled : true
1270+ runAsUser : 1001
1271+ # # @param proxy.containerPorts.proxy Container port to open on Redis™ Sentinel nodes
1272+ # #
1273+ containerPorts :
1274+ proxy : 36379
1275+
11611276# # @section Other Parameters
11621277# #
11631278
0 commit comments