我正在尝试将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
有人知道重复流量的另一种方法吗?
预先感谢, 克里斯
答案 0 :(得分:1)
Istio中没有TCP流量镜像的概念。该参考文件记录了TCP支持的内容: https://istio.io/docs/reference/config/networking/v1alpha3/virtual-service/