Deploying the OpenTelemetry Collector on Kubernetes with Helm: what it does and when to use it
A platform team that needs traces, metrics and logs from a Kubernetes cluster through one vendor-neutral pipeline needs a component that receives telemetry, processes it and exports it to whichever back ends they choose. The OpenTelemetry Collector does exactly that. It can run as an agent next to workloads on each node, or as a gateway that accepts data from many sources in one place. It is not a storage or visualization product, so the team still needs a back end for queries and dashboards. The Collector is the pipeline that moves data from applications and cluster components to those back ends.
The Collector is an Apache-2.0 licensed project in the open-source OpenTelemetry organization, so the team can review, fork and self-host it without a license fee. Collector releases ship the contrib distribution with signed artifacts, SHA256 checksums and SBOM files, along with the Collector builder and the OpAMP supervisor. Those artifacts give the security team something concrete to verify before the image enters the cluster. Confirm which distribution, version and verification steps your registry and admission policy expect, because the release notes describe what is published, not how your environment checks it.
On Kubernetes, the Helm chart is one of two supported deployment paths. It packages the Collector's deployment mode, default presets and the RBAC rules that Kubernetes receivers need to read cluster state. The other path is the OpenTelemetry Operator, which manages Collectors and instrumentation as custom resources. The choice between them shapes how the team upgrades, how it handles Prometheus target discovery and how much of the setup is declarative. The sibling sections on DaemonSet, Deployment and StatefulSet modes and on the Operator cover that decision in detail. Before starting, the team should confirm which chart version and Collector image they will pin, and who owns the service account permissions that the chart creates.
Choosing DaemonSet, Deployment or StatefulSet mode
A DaemonSet runs one Collector pod on every node (or on a selected subset of nodes). In the agent role, the Collector sits next to workloads and receives telemetry from local applications, reads node-local files and talks to the kubelet on its own node. This makes DaemonSet the usual choice for data that only exists on a node, such as container log files and kubelet stats. The OpenTelemetry Collector documentation describes the agent role as running next to services, which is the pattern this mode implements.
- What it sees: node-local container logs, host metrics, kubelet summary data and OTLP traffic from pods scheduled on that node.
- Typical presets: log collection and kubelet-based node metrics, usually with the Kubernetes attributes processor enabled so each record carries pod metadata.
- Failure impact: losing one agent pod loses telemetry only from its node, and the node's buffered data is at risk until the pod recovers.
- Scaling: capacity grows with the node count, so each node carries its own memory and CPU load, which matters on small nodes.
- Cost and RBAC: each agent needs node-level access and RBAC permissions for the Kubernetes receivers it uses, so review the service account scope before rollout.
Confirm the default presets, the included receivers and the RBAC rules in the chart version you install, because these change between releases.
A Deployment runs a fixed number of stateless Collector replicas that are not tied to any node. In the gateway role, the Collector receives data from many sources, such as agents, applications or other clusters, and then processes and exports it. The Collector documentation describes a gateway as an endpoint that accepts data from many sources. Deployment mode is the usual choice for cluster-wide API data, where one or a small number of instances should query the Kubernetes API rather than every node doing so.
- What it sees: cluster-wide Kubernetes API objects, such as events and cluster state, and OTLP traffic forwarded from agents or applications.
- Typical presets: cluster-level receivers that query the API server, and gateway pipelines that centralize processing before export.
- Failure impact: replicas restart without losing node-local data, but in-memory queues on a failed replica are lost unless you configure persistent queues.
- Scaling: add replicas for throughput, but avoid duplicating cluster-level receivers across replicas, which can produce duplicate data.
- Ownership: you decide where this tier runs, which affects network placement and the load it adds to the API server.
Confirm which presets run one replica for cluster-level receivers and whether the chart enforces this, since the answer varies with the version you install.
A StatefulSet gives each Collector pod a stable identity and its own persistent volume. Teams use it when a Collector must keep data across restarts, for example to buffer exports to a slow or unavailable back end, or when a stable pod name matters for routing. The Collector's persistent storage options write queued data to disk, so the pod's volume must survive rescheduling. StatefulSet mode adds storage and operational work, so choose it only when a stateful sending need is clear.
- What it sees: whatever the pipeline routes to it, typically traffic that must survive a restart before reaching the back end.
- Typical presets: gateway pipelines with a disk-backed exporter queue, often paired with a sending-layer load balancer.
- Failure impact: a restarted pod resumes from its volume, but a lost volume loses the buffered data, so check the storage class and backup approach.
- Scaling: scaling out adds pods with their own volumes, and scaling in needs a plan for the data each volume still holds.
- Ownership: you own the storage class, the volume sizing and the recovery steps, which should be tested before production use.
Confirm the persistent queue options and storage settings in the chart and Collector versions you use before you commit to this mode.
Collector Helm options and when each fits
This table compares the main Collector Helm choices (deployment mode, presets, RBAC scope, service exposure and authenticator extensions) and what each one trades away. Read each row against the chart values file for your chart release, because preset defaults change between releases and should be confirmed there rather than assumed.
| Option | Best fit | Trade-off to weigh |
|---|---|---|
| DaemonSet mode | Node-local collection such as container logs, kubelet stats and host metrics | One Collector per node means node-level access and RBAC, and per-node resource use that grows with node count |
| Deployment mode | Gateway-style receivers, OTLP ingestion from many workloads and central processing | Scales by replica count, but receivers that read node files or kubelet endpoints cannot see other nodes from here |
| StatefulSet mode | Workloads that need stable identity per Collector instance, such as Target Allocator-style sharding | Adds operational overhead for scaling and rollouts; confirm the chart's support for your sharding approach first |
| Kubernetes attributes preset | Tagging telemetry with namespace, pod, deployment and node metadata | Needs read access to pod and namespace metadata; running it in agents versus gateways changes which metadata is visible |
| Container logs preset | Reading stdout and stderr from node log paths in a DaemonSet | Requires host path mounts and node-level permissions, which widen the security review scope |
| Host and cluster metrics presets | Node and pod metrics from kubelets, and cluster object state | Cluster-level receivers must run as a single instance to avoid duplicate series, so they fit a Deployment with one replica |
| Kubernetes events preset | Turning cluster events into searchable logs | Event collection should run on a single instance; running it on every node duplicates events |
| RBAC scope | ClusterRole for cluster-wide receivers, namespace-scoped Role where data is limited to one namespace | Cluster-wide read access is broader; confirm the exact verbs and resources each enabled preset requests |
| Service exposure | ClusterIP for in-cluster senders, LoadBalancer or Ingress only for approved external sources | Exposing OTLP ports beyond the cluster needs authentication, network policy and TLS planned together |
| Authenticator extensions | OIDC or token checks on receivers, and credentials added to exporter requests | Each extension needs its own configuration, secret handling and testing before it is enforced at the gateway |
RBAC for Kubernetes receivers: what to grant and why
A Collector that reads cluster state needs Kubernetes permissions, and every receiver adds to that list. The cards below separate the baseline grant from the extra rights some receivers need, and the checks to run before the chart reaches production.
One service account per release
Give each Helm release its own service account, so the RBAC bindings belong to that Collector and nothing else. A separate account per release keeps a DaemonSet agent, a gateway and a cluster-level receiver from sharing permissions they do not need. When you remove a release, its identity and bindings go with it. Confirm in the chart values that the service account name and the ClusterRole binding are both generated for the release you intend to run.
Read-only access to pods, nodes and namespaces
The baseline for the Kubernetes attribute and node-level receivers is read-only access (get, list and watch) to pods, nodes and namespaces. These verbs let the Collector enrich telemetry and read node-level data without changing anything in the cluster. Confirm the exact resource list and API groups against the README of each receiver and processor you enable, because the set differs by component and by release.
Extra rights for cluster object and event receivers
The cluster-level receivers that watch Kubernetes objects or events need rights beyond the node baseline, such as reading deployments, replica sets or events across namespaces. Grant these only on the Collector that runs those receivers, typically a single instance. Keeping them off the DaemonSet agents limits what a compromised node-level pod could read. Ask for the list of resources each receiver reads and check whether a namespace filter can narrow the scope.
Avoiding wildcard verbs and resources
Wildcards such as * for verbs or resources are easy to write and hard to audit. They grant access to resources and actions the receiver never uses, including writes and secret reads. Write explicit verbs and resource names in the chart's RBAC template or in your overrides, and review them in your Git history. Secrets should not appear in the grant at all unless a specific component needs them, and that need should be written down.
Dry-run and access review before rollout
Before you install or upgrade, render the chart with helm template and inspect the ClusterRole and binding it produces. Then check the effective permissions with kubectl auth can-i --as for the Collector's service account, testing both the grants you expect and the writes you do not. Run the same check after each chart upgrade, since default RBAC templates can change between chart versions. Record the results so an auditor or security reviewer can compare them with the design.
How agent and gateway Collectors fit in a cluster
The diagram starts at the node DaemonSet agents, which read container and host data on each node and forward it to a gateway Deployment. The gateway is the single point that batches, processes and exports to the backend, so it is where you check credentials and network egress. Cluster-level receivers read the Kubernetes API through a service account, and the RBAC boundary around that account decides what they can see. The Operator appears as a separate control path that manages these Collectors, not as a second pipeline. Confirm which edges cross the trust boundary before you open any egress rule.
Agents run on each node, a gateway forwards data, and RBAC limits cluster reads.
Setup sequence for the Helm deployment
This sequence takes a cluster from an unconfigured state to a Collector deployment in agent and gateway modes, with RBAC, pinned versions and verified telemetry flow before any endpoint is exposed. Each step closes with a check the team can record as evidence.
Confirm cluster version and skew policy
The platform engineering lead checks the cluster's current minor version against the supported release list on the Kubernetes releases page and against the version skew policy before anything is installed. Confirm that the kubelet versions on every node pool fall within the allowed skew from kube-apiserver, and that the cluster is on a minor version that still receives patches. Record the server version and node versions in the change ticket. The step is complete when every node pool is inside the policy and the team has a dated record of the versions it validated against. If any pool is outside the policy, schedule the upgrade first, because the Collector's Kubernetes receivers depend on API behavior that differs between releases.
Plan namespaces and service accounts
Decide which namespace holds the Collector and which service accounts the agent and gateway pods will use. Keep agents and gateways in separate service accounts so that node-level permissions are not granted to the gateway, and so that audit logs show which component called the API. Document the namespace labels and pod security level that the chart will run under, and check them against the Pod Security Standards for the namespace. The output is a short table listing each workload, its namespace, its service account and the reason for the split. Verify the plan with a dry run of namespace creation in a non-production cluster before the same names are used in production.
Pin the chart and Collector image versions
Select a specific version of the OpenTelemetry Collector Helm chart and a specific Collector image tag, and record both in version control. Use the Collector releases page to confirm the release you intend to deploy, including its signed artifacts, SHA256 checksums and SBOM files, and note whether you are using the contrib distribution or a custom build from the Collector Builder. Set the image digest or tag explicitly in values rather than relying on a floating default. Run
helm show valuesagainst the pinned chart version and save the output so later upgrades can be compared line by line. The step is done when the chart version, image tag and checksum verification are all stored in the repository.Write values for mode and presets
Write the Helm values file that sets the deployment mode for each release, using
modeto choose DaemonSet for node-local collection and Deployment or StatefulSet for gateway roles. Enable only the presets you need, such as the Kubernetes attributes or logs collection presets, and disable the rest so that no receiver is running without an owner. Keep the agent and gateway values in two separate files so each can be reviewed on its own. The Collector configuration docs describe the pipeline structure; use them to confirm receiver, processor and exporter names, and avoid copying the full structure into your values. Render the chart withhelm templateand inspect the output. The check is a rendered manifest set that contains exactly the workloads you planned in the previous step.Apply RBAC for Kubernetes receivers
Apply the ClusterRole and ClusterRoleBinding that the Kubernetes receivers and the k8sattributes processor need, and bind them only to the service accounts defined earlier. Grant read-only verbs on the resources each receiver actually watches, and avoid wildcard verbs or write access to secrets. Keep the rule set in a separate manifest so security reviewers can read it without reading the chart. Confirm the permissions with
kubectl auth can-i --asfor the agent and gateway service accounts, testing both allowed and denied actions. The step is complete when the allowed list matches the receivers in your values and every denied action returns no.Deploy agents first, then the gateway
Install the DaemonSet agent release into a single non-production cluster first, then install the gateway release that receives data from those agents. Deploy the agents before the gateway so that the gateway's exporters can be tested with real traffic as soon as it starts. Watch rollout status with
kubectl rollout statusfor each workload and check that every node runs one agent pod. Confirm the gateway service exposes the ports the agents are configured to send to. The step is complete when all pods are ready, no pod is restarting, and the gateway shows an open connection from at least one agent.Verify with Collector telemetry and a test trace
Check the Collector's own health through its internal telemetry endpoints and logs, looking for export failures, refused data or memory warnings during the first load. Send a test trace from a sample workload in the same cluster, then query the back end for that trace and confirm the Kubernetes attributes appear on the spans. Repeat the check for one metric and one log record if those pipelines are enabled. Record the trace ID, the pipeline names and the observed attributes in the deployment record. The step is done when the test trace arrives at the back end with its expected resource attributes and the Collector logs show no sustained export errors.
Restrict endpoints and confirm bindings
Restrict the Collector's receiver endpoints to the networks and workloads that need them, and confirm that server components do not listen on all interfaces unless the chart requires it. The OpenTelemetry security guidance recommends encryption and authentication for Collector endpoints, so add TLS and an authenticator extension where the design calls for it, and review the network policy the chart renders. Test the restriction from an allowed pod and from a pod outside the allowed set, and confirm that only the allowed call succeeds. The step closes when the endpoint list, network policy and the two test results are stored with the chart version, so the security review has the same evidence as the deployment.
When the OpenTelemetry Operator is the better fit
Choose the Helm chart when your team wants every Collector setting visible in version-controlled values files and pipelines managed as code, reviewed in the same way as application configuration. The chart's values set the mode, the presets (such as kubeletMetrics, kubernetesAttributes and logsCollection) and the receivers and exporters you enable, so a reviewer can see exactly which RBAC rules, host mounts and endpoints a release creates. This suits platform teams that run a small number of Collector configurations, want GitOps tooling such as Argo CD to apply them, and prefer to read the rendered manifests directly. The trade-off is that you own more of the lifecycle: upgrading the chart, the image tag and the configuration together, and writing the rollout logic yourself.
Choose the OpenTelemetry Operator when the lifecycle itself needs to be declarative in Kubernetes. The Operator reconciles OpenTelemetryCollector custom resources, can inject SDK instrumentation into pods through Instrumentation resources, and can distribute Prometheus scrape targets through the Target Allocator. Those three capabilities are the usual reasons teams move away from Helm-only deployments, particularly when several teams create their own Collector resources or when auto-instrumentation must be applied per namespace. Before committing, confirm the Operator release you plan to use, the Collector versions it supports, and the cluster-scoped RBAC and admission webhook it requires, since the Operator's own permissions are broader than a single Collector release and must be approved by your cluster security team. Check the current documentation for the Operator's version support and installation requirements before you choose.
Securing Collector endpoints and configuration on Kubernetes
A Collector deployed with Helm exposes receivers, holds exporter credentials and, in agent mode, often needs host-level access to nodes. The cards below cover the controls that keep those surfaces narrow, from endpoint binding and authentication to how the configuration itself is stored and who can read it.
Confirm localhost binding defaults
Since Collector v0.110.0, server components bind to localhost by default rather than 0.0.0.0. Helm values that override receiver endpoints to listen on all interfaces, such as OTLP on 0.0.0.0:4317, reopen that exposure on purpose. Check the rendered configuration for each receiver, and confirm that any chart version you pin still applies the new default before you rely on it for agent or gateway traffic that must cross pods.
Security best practicesAuthenticate receivers and exporters
Authenticator extensions can check incoming connections on receivers, for example with OIDC, and add credentials to outgoing exporter requests, such as the oauth2client extension. Decide which receivers accept traffic from other clusters or namespaces and require a token for them. Store the client secret in a Kubernetes Secret, not in plain values, and confirm the extension appears in the service section of the pipeline.
Collector configuration docsRedact sensitive attributes in pipelines
The redaction processor removes attributes that should never leave the cluster, such as authorization headers, session cookies or fields that carry personal data. Place it early in the logs and traces pipelines, before exporters, and list the attribute keys your applications actually emit. Test the processor with sample payloads from each workload, because redaction only protects keys it is configured to match.
Store configuration in Secrets
Collector configuration that contains tokens, endpoints with embedded credentials or TLS key material should be delivered through Kubernetes Secrets rather than chart values committed to source control. Kubernetes stores Secrets unencrypted in etcd by default, so confirm that encryption at rest is enabled on the cluster. Then restrict get, list and watch on those Secrets with namespace-scoped RBAC, so only the Collector service account and the deploying pipeline can read them.
Secrets good practicesBuild minimal distributions
The Collector Builder lets you compile a distribution that includes only the receivers, processors, exporters and extensions your pipelines use. A smaller binary means fewer components that can accept network input and fewer dependencies to patch. Pair the custom image with the component stability levels in each README, so you know which parts of the build carry experimental or beta status before they reach production.
Set Pod Security Standards for agents
Agent DaemonSets usually mount host paths such as container log directories and request host networking to scrape node metrics. These settings fall outside the restricted profile, so the namespace needs an explicit Pod Security Standards level and a documented exception. Limit the exception to the agent namespace, drop capabilities the agent does not need, and review each host mount during chart upgrades, since new chart versions can add mounts.
Pod Security StandardsQuestions teams ask before deploying the Collector with Helm
Which Collector mode should we start with on Kubernetes?
Start with the mode that matches the job each Collector does, not the one you have seen in a tutorial. Node-local collection, such as reading container logs or kubelet stats from every node, usually points to a DaemonSet agent. Central processing that receives data from many sources points to a Deployment gateway. A StatefulSet is only worth the extra care when a component needs stable identity or local state, for example a sharded setup or a per-pod target assignment. The pillar's model describes agents running next to workloads and gateways accepting data from many sources, so map each pipeline to one of those roles before you pick a chart value. Confirm the exact preset names against the chart version you plan to pin.
Is a single Deployment enough to collect everything from a cluster?
Usually not. A single Deployment can receive OTLP from applications and run cluster-level receivers, but node-scoped sources such as host logs and kubelet metrics need one collector on each node. Splitting the work also limits the blast radius: a gateway restart should not stop node log collection. A single Deployment can be enough for a small test cluster or for a pipeline that only receives application traces, but plan for at least one node-level agent before calling the rollout complete. Ask your team to list every receiver first, then group them by whether they read from a node, from the API server, or from an application.
How much effort does a Helm rollout take, and what drives it?
The effort depends on what you are wiring up, not on the chart install itself, which is the fast part. The main drivers are the number of clusters, the number of receivers and processors in each pipeline, the RBAC review that Kubernetes receivers require, and the backend work of routing, retention and access control. Each additional cluster repeats the values review and the verification, and each receiver adds permissions and failure modes to test. Ask any partner or internal lead for a written breakdown of these four items, a list of assumptions, and what is one-time versus recurring. No duration is given here because none is supplied for this topic, so request a schedule tied to your cluster and receiver inventory.
Can our in-house platform team deploy the Collector with Helm alone?
Often yes, if at least one engineer is comfortable with Kubernetes RBAC, Helm values, and the Collector configuration model, and if the scope stays small. The areas that catch teams are service account permissions for Kubernetes receivers, the security settings of the Collector configuration, and the decision about which components belong in a custom build. Your team also needs an owner for upgrades and a test environment that matches production closely enough to catch broken pipelines. If those skills or owners are missing, an outside partner can review the design and the permissions before rollout. Check the release notes for the Collector version you pin, since component stability varies and is documented per component.
What does an outside partner need from us before starting?
A partner needs an accurate picture of your clusters, your workloads and your backends. Prepare a list of clusters with their Kubernetes versions, the namespaces and workloads you want to observe, the telemetry each team already emits, and the back ends that will receive the data. Provide read access to existing Helm values and manifests, the Kubernetes policies that apply to your clusters, and the security requirements that the Collector must meet, including how secrets are stored and who can reach Collector endpoints. Agree on the test cluster, the change process and the acceptance checks in writing before work begins. Most engagements are fixed-scope, so the written scope should name these inputs as assumptions.
How do Collector upgrades affect our Helm presets and values?
Upgrades can change the chart, the Collector image and the components inside it, so presets and values need a review each time. Collector releases ship the contrib distribution with signed artifacts, SHA256 checksums and SBOM files, which helps you verify what you deploy. Component stability differs across the Collector, so a component that works today may change behavior, be renamed or move between stability levels. Pin the chart and image versions, read the release notes for each step, test the values against a non-production cluster, and keep a rollback path. Ask whether your partner or team will own these reviews after go-live, since that work recurs with every release cycle.
When is the Operator a better fit than the Helm chart?
Choose the Operator when you need the Collector to be managed as a Kubernetes resource that reacts to changes in the cluster, or when you want Target Allocator-based Prometheus scraping, which depends on the Operator. The Helm chart is a good fit when you want explicit values files, a simple install and direct control of each Collector deployment. Compare the two on who will manage changes, how often configuration changes, and whether you need the scraping model the Operator provides. Mixing both approaches in one cluster adds review work, so decide early and document it. Confirm which features each approach supports in the versions you plan to use, because capabilities differ across releases.
How DeployOpen works on this
DeployOpen plans and deploys the OpenTelemetry Collector on Kubernetes inside your own clusters, cloud accounts or data centers. The work follows a written scope that fixes the deployment modes, presets, RBAC and handover deliverables before any chart is installed.
How we scope
- We map which telemetry each cluster must emit and which receivers need node, API or event access.
- We record the chosen mode per pipeline (DaemonSet, Deployment or StatefulSet) and the reason for each choice.
- We agree in writing whether the Operator or the Helm chart is the better fit for your cluster estate.
How we build
- We write Helm values files under version control and pin the chart and Collector versions you approve.
- We define the ServiceAccount, ClusterRole and binding for each Kubernetes receiver, granting only the verbs it needs.
- We test each pipeline in a non-production cluster and verify data arrives at the back end before rollout.
How we hand over
- You receive the values files, RBAC manifests, pipeline diagrams and a runbook for changing modes or presets.
- We document how to confirm the chart version, Collector release and component stability levels in your environment.
- We walk your platform and security teams through the configuration so they can review and maintain it.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- Your quote follows from the written scope, so ask for line items covering build, testing, handover and retainer terms.

