Skip to content

Commit

Permalink
Adding Redis proxy configs
Browse files Browse the repository at this point in the history
  • Loading branch information
SanduDS committed Nov 7, 2024
1 parent cdb10a3 commit d8156ab
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions router/src/main/resources/envoy.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,39 @@ static_resources:
socket_address:
address: '${ENFORCER_HOST}'
port_value: 9001
- name: redis_cluster
connect_timeout: 5s
lb_policy: CLUSTER_PROVIDED
dns_lookup_family: V4_ONLY
load_assignment:
cluster_name: redis_cluster
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: ${REDIS_HOST}
port_value: ${REDIS_PORT}
typed_extension_protocol_options:
envoy.filters.network.redis_proxy:
"@type": type.googleapis.com/envoy.extensions.filters.network.redis_proxy.v3.RedisProtocolOptions
auth_password:
inline_string: ${REDIS_PASSWORD}
cluster_type:
name: envoy.clusters.redis
typed_config:
"@type": type.googleapis.com/google.protobuf.Struct
value:
cluster_refresh_rate: 5s
cluster_refresh_timeout: 3s
redirect_refresh_interval: 5s
redirect_refresh_threshold: 5
health_checks:
- timeout: 1s
interval: 5s
unhealthy_threshold: 3
healthy_threshold: 2
custom_health_check:
name: envoy.health_checkers.redis
typed_config:
"@type": type.googleapis.com/envoy.extensions.health_checkers.redis.v3.Redis

0 comments on commit d8156ab

Please sign in to comment.