覆盖物中的补丁容器
我有用案例在环境上添加一些库(代理)基础,
├───k8s
│ ├───base
│ ├───modules
│ │ └───someagent
│ └───overlays
│ └───local
该代理基本上是一个容器,它将与我在基地中定义的主容器进行通信。
有人可以建议如何在kustomization.yaml中定义本地吗?我已经尝试了PatchSstrategicmerge,但它不起作用。
谢谢
I have use case to add some library (agent) base on the environment
├───k8s
│ ├───base
│ ├───modules
│ │ └───someagent
│ └───overlays
│ └───local
This agent basically is a container that will communicate with the main container that I define in the base.
Can someone advice how to define in kustomization.yaml in local? I have tried with patchesStrategicMerge, but it doesn't work.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我了解,您正在尝试将第二个(Sidecar)容器添加到现有吊舱中。由于运行独立豆荚非常罕见,我会为部署提供一个示例补丁,但可以很容易地更改为其他类型:
From what I understand, you are trying to add a second (sidecar) container to an existing Pod. Since it's pretty rare to run standalone Pods I will give an example patch for a deployment but it can easily be changed to other Kinds: