服务治理默认的 timeout 参数是关闭的,你检查下你的 virtualservice 的 timeout 是不是设置了值。如果问题依然存在,你把这个 timeout修改大点,看是否能解决你的问题。详情参考
root@ks-allinone:/root # kubectl get vs/productpage -n pj-demo -o yaml
spec:
hosts:
- productpage
http:
- route:
- destination:
host: productpage
port:
number: 9080
subset: v1
timeout: 50s
weight: 100