[英]How to overwrite a value during deployment via helm-chart in a multi-container pod?
I have a definition in my values.yaml to deploy 2 containers in one pod. 我在values.yaml中有一个定义,可以在一个pod中部署2个容器。 When running a custom CI/CD pipeline I would like to overwrite the tag(version) of the container which changes.
运行自定义CI / CD管道时,我想覆盖更改的容器的标记(版本)。
Normally I would do something like that: 通常我会做这样的事情:
helm upgrade --install app-pod-testing --set container.tag=0.0.2
The values.yaml has 2 containers defined: values.yaml定义了2个容器:
containers:
- repo: services/qa/helloworld1
tag: 843df3a1fcc87489d7b52b152c50fc6a9d59744d
pullPolicy: Always
ports:
container: 8080
resources:
limits:
memory: 128Mi
securityContext:
allowPrivilegeEscalation: false
- repo: services/qa/helloword2
tag: bdaf287eaa3a8f9ba89e663ca1c7785894b5128f
pullPolicy: Always
ports:
container: 9080
resources:
limits:
memory: 128Mi
securityContext:
allowPrivilegeEscalation: true
How do I do set to overwrite only tag for repo services/qa/helloword2 during deployment ? 如何在部署期间设置为仅覆盖repo services / qa / helloword2的标记? Any help/suggestions appreciate.
任何帮助/建议表示赞赏。
Are you the author of this helm chart? 您是这张舵图的作者吗? If yes, you can just use different property path for each container in the template.
如果是,则可以为模板中的每个容器使用不同的属性路径。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.