简体   繁体   English

如何在部署中使用金丝雀标签覆盖命名空间默认稳定标签 istio 注入

[英]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.

相关问题 使用istio和Ingress Nginx进行金丝雀部署 - Canary deployment with istio and ingress nginx 为什么我的金丝雀部署不适用于 istio? - Why my canary deployment does not work with istio? 如何在Kubernetes中以部署中指定的不同版本实施Canary部署 - How to implement Canary deployment in kubernetes with different versions specified in deployment 如何在属于另一个命名空间的部署 yaml 中指定 serviceAccount(在默认命名空间中创建) - How to specify serviceAccount (created in default namespace) in the deployment yaml belonging to another namespace 如何在部署 yaml 文件中传递参数化图像标签? - How to pass parametrized image tag in the deployment yaml file? 如何使用 java api 检索特定的 Kubernetes 部署映像标签? - How to retrieve a specific Kubernetes deployment image tag using java api? 是否可以将Istio部署在特定的名称空间而不是istio-system上? 如果只有名称空间访问,如何使用Istio? - Can Istio be deployed on a specific namespace instead of istio-system? How can Istio be used if there's only namespace access? 如何在 Kubernetes 部署中使用动态/可变图像标签? - How to use dynamic/variable image tag in a Kubernetes deployment? mongodb 算子部署在 openshift “Failed to apply default image tag ”/:4.2.6“ invalid reference format” - mongodb operator deployment in openshift “Failed to apply default image tag ”/:4.2.6“ invalid reference format” Istio SIde汽车注射 - Istio SIde car injection
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM