Skip to content

Commit 82052a3

Browse files
authored
Update logs-in-kubernetes docs to warn users about daemonsets (#4160)
* Update logs-in-kubernetes docs to warn users about daemonsets * Use the right brackets * Revert "Use the right brackets" This reverts commit 8196de7. * move link into admonition
1 parent 3f7f464 commit 82052a3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/sources/collect/logs-in-kubernetes.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,12 @@ Replace the following values:
166166
You can get pods logs through the log files on each node. In this guide, you get the logs through the Kubernetes API because it doesn't require system privileges for {{< param "PRODUCT_NAME" >}}.
167167
{{< /admonition >}}
168168

169+
{{< admonition type="note" >}}
170+
When deploying {{< param "PRODUCT_NAME" >}} as a daemonset, ensure that you have [configured discovery][discovery.kubernetes.daemonset] appropriately to only collect logs from the same node.
171+
172+
[discovery.kubernetes.daemonset]: ../../reference/components/discovery/discovery.kubernetes/#limit-to-only-pods-on-the-same-node
173+
{{< /admonition >}}
174+
169175
You need the following components:
170176

171177
* [`discovery.kubernetes`][discovery.kubernetes]: Discover pods information and list them for components to use.

0 commit comments

Comments
 (0)