将bookinfo部署到另一个命名空间,访问ingress gateway return 404.如何为非默认命名空间配置virtualservice?

Deploy bookinfo into another namespace, access ingress gateway return 404. How to configure virtualservice for non-default namespace?

我正在使用 istio 1.0.2 版本 具有安全功能 (istio-demo-auth.yaml) 和 k8s 版本是 v1.9.1.

在目标主机中指定:productpage.multitenancy.svc.cluster.local。由于网关在 default 命名空间中(我假设您使用标准 bookinfo 中的 bookinfo-gateway Gateway 定义),将 VirtualService 放在 default 命名空间中还有。