Istio tcp 流量镜像

Istio tcp traffic mirroring

我正在尝试将我的 TCP 生产流量镜像到我们的开发环境。 我们正在使用 istio 和 kubernetes。

我查看了关于镜像的 istio 文档:

apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: httpbin
spec:
  hosts:
    - httpbin
  http:
  - route:
    - destination:
        host: httpbin
        subset: v1
      weight: 100
    mirror:
      host: httpbin
      subset: v2

但这似乎只适用于 http 流量。正确的? 当用于 TCP 时,我得到:

unknown field "mirror" in v1alpha3.TCPRoute

有人知道复制流量的替代方法吗?

提前致谢, 克里斯

Istio中没有TCP流量镜像的概念。参考文档记录了 TCP 支持的内容: https://istio.io/docs/reference/config/networking/v1alpha3/virtual-service/