Agents.volumes 参数在 Datadog Helm Chart 中如何工作
我正在尝试将文件路径安装到我的 datadog 代理容器中,该容器正在通过 Datadog Helm Chart。
我使用 agents.volumes
值来传递。文档将其描述为“指定要在 dd-agent 容器中安装的其他卷”。
基于 Datadog 中找到的语法/helm-charts repo - 我正在使用:
agents:
volumes:
- hostPath:
path: /var/log/cloud-init.log
name: cloud-init
但是当我将该更改应用于我的集群时,我没有看到任何证据表明该路径已安装在我的代理上的任何位置 容器。我没有看到任何关于将主机容器中的卷安装到 datadog 代理容器中的详细解释。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我看到该值仅用于声明Daemonset Pod定义上的卷,而不是安装它们。
代理
用于定义代理上的自定义卷,但这用于Daemonset定义,特别是在spec.template.spec.spec.volumes
在这里查看。要实际使用这些量,您必须定义变量
agents.volumeMounts
which is used因此,您很可能想定义您的价值观:
I see that value is only used to declare the volumes on the DaemonSet pod definition, not to mount them.
agents.volumes
is for defining custom volumes on the agent but this is used on the DaemonSet definition, specifically onspec.template.spec.volumes
look here.To actually use those volumes you have to define the variable
agents.volumeMounts
which is used here.So you most likely want to define your values like this: