金丝雀部署:Canary Releases
ambassador使用加权循环,在多个服务之间路由流量。收集所有服务的完整指标,以便比较canary和production的相对性能。这个weight的值在0~100%之间。
--- apiVersion: getambassador.io/v2 kind: Mapping metadata: name: quote-backend spec: prefix: /backend/ service: quote --- apiVersion: getambassador.io/v2 kind: Mapping metadata: name: quote-backend2 spec: prefix: /backend/ service: quotev2 weight: 10
以上这个例子中,10%的请求被分发到quote-backend2上,90%的请求被分发到quote-backend上