【问题标题】:ElastiCache Redis Cluster and IstioElastiCache Redis 集群和 Istio
【发布时间】:2019-07-13 03:09:49
【问题描述】:

我正在尝试从 EKS 中将 Istio 作为 sidecar 代理的容器内连接到我的 ElastiCache Redis Cluster 5.0,但我经常收到 MOVED 错误循环。

我有 1 个分片和 2 个副本,我为每个分片 + 配置端点添加了一个 ServiceEntry 和一个 VirtualService。

用于 Istio 路由的示例配置:

kind: ServiceEntry
metadata:
  name: redis-test-cluster
spec:
  hosts:
  - redis-cluster-test.XXXX.clustercfg.euw1.cache.amazonaws.com
  ports:
  - number: 6379
    name: tcp
    protocol: TCP
  resolution: NONE
  location: MESH_EXTERNAL
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: redis-test-cluster
spec:
  hosts:
  - redis-cluster-test.XXXX.clustercfg.euw1.cache.amazonaws.com
  http:
  - timeout: 30s
    route:
    - destination:
        host: redis-cluster-test.XXXX.clustercfg.euw1.cache.amazonaws.com

【问题讨论】:

    标签: redis amazon-elasticache istio redis-cluster amazon-eks


    【解决方案1】:

    请注意,Redis 协议不是 HTTP,因此您不能使用 http VirtualService。

    要控制 Redis 等 TCP 协议的出口访问,请检查 Egress Control for TLS section of the Consuming External MongoDB Services blog post。

    【讨论】:

    猜你喜欢
    • 2021-02-05
    • 2022-10-24
    • 2018-05-03
    • 1970-01-01
    • 2019-02-02
    • 2015-11-21
    • 2019-09-12
    • 2020-03-31
    • 2022-10-20
    相关资源
    最近更新 更多