代码之家  ›  专栏  ›  技术社区  ›  Fred Mériot

Istio virtualService是否始终需要DestinationRule?

  •  0
  • Fred Mériot  · 技术社区  · 8 年前

    我是Istio的新手,我刚开始玩虚拟服务。在文档中,示例显示了virtualService和destinationRule的创建

    但是 here ,在这篇关于canary部署的博客文章中,他们只是创建了一个virtualService:

    kind: VirtualService metadata: name: helloworld spec: hosts: - helloworld http: - route: - destination: host: helloworld subset: v1 weight: 90 - destination: host: helloworld subset: v2 weight: 10

    那么,没有命运法则,我怎么知道呢 subset:v1 对应于 version:v1 helloworld部署的标签?

    非常感谢。

    1 回复  |  直到 8 年前
        1
  •  3
  •   Vadim Eisenberg    8 年前

    如果 VirtualService 使用 subsets ,您必须定义 子集 在一个 DestinationRule

    我已经打开了一个问题来修复博客文章 https://github.com/istio/istio.github.io/issues/2152