Skip to content

Instantly share code, notes, and snippets.

@maksim-paskal
Created May 12, 2025 14:44
Show Gist options
  • Select an option

  • Save maksim-paskal/1eb0de8160c6e2f19e692c00ec1f7e24 to your computer and use it in GitHub Desktop.

Select an option

Save maksim-paskal/1eb0de8160c6e2f19e692c00ec1f7e24 to your computer and use it in GitHub Desktop.

Revisions

  1. maksim-paskal created this gist May 12, 2025.
    49 changes: 49 additions & 0 deletions envoy-redis-proxy.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,49 @@
    admin:
    access_log_path: "/dev/null"
    address:
    socket_address:
    address: 0.0.0.0
    port_value: 9901

    static_resources:
    listeners:
    - name: redis_listener
    address:
    socket_address:
    address: 0.0.0.0
    port_value: 6379
    filter_chains:
    - filters:
    - name: envoy.filters.network.redis_proxy
    typed_config:
    "@type": type.googleapis.com/envoy.extensions.filters.network.redis_proxy.v3.RedisProxy
    stat_prefix: egress_redis
    settings:
    op_timeout: 5s
    enable_redirection: true
    enable_command_stats: true
    prefix_routes:
    catch_all_route:
    cluster: redis_cluster
    clusters:
    - name: redis_cluster
    connect_timeout: 1s
    type: strict_dns
    load_assignment:
    cluster_name: redis_cluster
    endpoints:
    - lb_endpoints:
    - endpoint:
    address:
    socket_address:
    address: redis-name.eastus.redis.azure.net
    port_value: 10000
    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: token
    transport_socket:
    name: envoy.transport_sockets.tls
    typed_config:
    "@type": type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext