【发布时间】:2020-09-21 12:00:59
【问题描述】:
如果virtualservice A 在namespace A 中使用networking.istio.io 定义,它如何使用在另一个命名空间namespace B 中定义的gateway B?
谢谢
【问题讨论】:
标签: kubernetes istio gateway service-virtualization
如果virtualservice A 在namespace A 中使用networking.istio.io 定义,它如何使用在另一个命名空间namespace B 中定义的gateway B?
谢谢
【问题讨论】:
标签: kubernetes istio gateway service-virtualization
如果它与虚拟服务不在同一个命名空间中,则必须在虚拟服务中指定它
查看spec.gateways 部分
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: bookinfo-Mongo
namespace: bookinfo-namespace
spec:
gateways:
- some-config-namespace/my-gateway # can omit the namespace if gateway is in same
namespace as virtual service.
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: my-gateway
namespace: some-config-namespace
有相关的istio documentation关于那个。
【讨论】:
gateways: my-gateway.some-config-namespace