Install the Collector with Kubernetes

You are viewing the English version of this page because it has not yet been fully translated. Interested in helping out? See Contributing.

Use the following command to install the OpenTelemetry Collector as a DaemonSet and a single gateway instance:

kubectl apply -f https://raw.githubusercontent.com/open-telemetry/opentelemetry-collector/v0.128.0/examples/k8s/otel-config.yaml

This example serves as a starting point. For production-ready customization and installation, see OpenTelemetry Helm Charts.

You can also use the OpenTelemetry Operator to provision and maintain an OpenTelemetry Collector instance. The Operator includes features such as automatic upgrade handling, Service configuration based on the OpenTelemetry configuration, automatic sidecar injection into deployments, and more.

For guidance on how to use the Collector with Kubernetes, see Kubernetes Getting Started.