[英]How to overwrite namespace default stable tag istio injection with canary tag in deployment
I have Istio 1.12.0 running with a stable tag and I have upgraded my istio version to 1.13.9 with canary tag.我的 Istio 1.12.0 运行时带有稳定标签,并且我已将我的 istio 版本升级到带有金丝雀标签的 1.13.9。 The default tag is mapped with 1.12.0 and added to the namespace.默认标记与 1.12.0 映射并添加到命名空间。
Now I want to overwrite the namespace injection with the canary tag in the deployment for one application.现在我想在一个应用程序的部署中用 canary 标记覆盖命名空间注入。
Note- I have tried to add pod label istio.io/rev: canary in deployment but couldn't get success, still picked the stable tag 1.12.0 which comes from namespace injection.注意-我尝试在部署中添加 pod label istio.io/rev: canary但未能成功,仍然选择了来自命名空间注入的稳定标签 1.12.0。
Is there any way to overwrite the injection based on labels or annotation?有什么方法可以根据标签或注释覆盖注入吗?
istioctl tag list output
TAG REVISION NAMESPACES
canary 1-13-9 bookinfo
default 1-12-0 dev
stable 1-12-0
There is a process described in istio documentation to manually relabel your istio versions when you are performing the upgradation of the control plane. istio 文档中描述了一个过程,可以在您执行控制平面升级时手动重新标记您的 istio 版本。 The document clearly outlines how to upgrade your istio control plane using canary deployment model, refer this for more information.该文档清楚地概述了如何使用金丝雀部署 model 升级您的 istio 控制平面,请参阅此以获取更多信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.