Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 55a016d

Browse files
Merge pull request #2437 from splunk/trangl-docguild-27431-k8s-receiver-updates
Update k8s objects receiver with chart deployment
2 parents 02f4317 + 1c1e138 commit 55a016d

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

gdi/opentelemetry/components/kubernetes-objects-receiver.rst

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Kubernetes objects receiver
99

1010
The Kubernetes Objects receiver collects objects from the Kubernetes API server. The supported pipeline is ``logs``. See :ref:`otel-data-processing` and :ref:`kubernetes-config-logs` for more information.
1111

12-
.. note:: This receiver supports authentication via service accounts only at the moment.
12+
.. note:: This receiver supports authentication through service accounts only at the moment.
1313

1414
Get started
1515
======================
@@ -95,11 +95,12 @@ Configure the resources for the Kubernetes deployment
9595

9696
Follow these sections to set up the various Kubernetes resources required to deploy the Collector with the receiver.
9797

98-
Configuration
98+
Manual deployment
9999
--------------------------------------
100100

101101
Create a ConfigMap with the config for ``otelcontribcol``, replacing ``OTLP_ENDPOINT`` with a valid value.
102102

103+
103104
.. code-block:: yaml
104105
105106
apiVersion: v1
@@ -129,6 +130,25 @@ Create a ConfigMap with the config for ``otelcontribcol``, replacing ``OTLP_ENDP
129130
receivers: [k8sobjects]
130131
exporters: [otlp]
131132
133+
Chart deployment
134+
--------------------------------------
135+
136+
Alternatively, use the following Helm chart deployment instead of the manual deployment:
137+
138+
.. code-block:: yaml
139+
140+
clusterReceiver:
141+
k8sObjects:
142+
- name: pods
143+
mode: pull
144+
label_selector: environment in (production),tier in (frontend)
145+
field_selector: status.phase=Running
146+
interval: 15m
147+
- name: events
148+
mode: watch
149+
group: events.k8s.io
150+
namespaces: [default]
151+
132152
Service account
133153
--------------------------------------
134154

0 commit comments

Comments
 (0)