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

Commit 09701f5

Browse files
committed
Add section per Josh's suggeston
1 parent 5581beb commit 09701f5

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

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

Lines changed: 20 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,23 @@ Create a ConfigMap with the config for ``otelcontribcol``, replacing ``OTLP_ENDP
129130
receivers: [k8sobjects]
130131
exporters: [otlp]
131132
133+
Chart deployment
134+
--------------------------------------
135+
136+
.. code-block:: yaml
137+
138+
clusterReceiver:
139+
k8sObjects:
140+
- name: pods
141+
mode: pull
142+
label_selector: environment in (production),tier in (frontend)
143+
field_selector: status.phase=Running
144+
interval: 15m
145+
- name: events
146+
mode: watch
147+
group: events.k8s.io
148+
namespaces: [default]
149+
132150
Service account
133151
--------------------------------------
134152

0 commit comments

Comments
 (0)