我正在制作一个管道,使用spinnaker的kayenta自动部署金丝雀。在部署canary时,我想使用helm chart进行部署,如何划分现有版本和canary版本?
我想在安装金丝雀版本时插入自定义值作为舵图。我如何才能做到这一点呢?
发布于 2021-03-31 20:42:56
一个现有的版本将已经在服务器上运行。
当spinnaker更新构建时,它会将最新的helm chart YAML文件应用到K8s集群。
您可以使用--set将自定义值设置到helm中,并覆盖valus.yaml预定义的值。
现在,假设您在K8s集群中运行istio
您可以将更新后的权重应用于金丝雀部署。
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: helloworld
spec:
hosts:
- helloworld
http:
- route:
- destination:
host: helloworld
subset: v1
weight: 90
- destination:
host: helloworld
subset: v2
weight: 10在上面的YAML示例中,您可以根据需要更改权重&标签。
https://stackoverflow.com/questions/66887343
复制相似问题