opentelemetry-kube-stack
OpenTelemetry Quickstart chart for Kubernetes. Installs an operator and collector for an easy way to get started with Kubernetes observability.
About this chart
OpenTelemetry Stack
OpenTelemetry Stack - OpenTelemetry Stack
TL;DR;
$ helm repo add appscode https://charts.appscode.com/stable/
$ helm repo update
$ helm search repo appscode/opentelemetry-kube-stack --version=0.14.12
$ helm upgrade -i opentelemetry-kube-stack appscode/opentelemetry-kube-stack -n monitoring --create-namespace --version=0.14.12
Introduction
This chart deploys OpenTelemetry Stack on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.25+
Installing the Chart
To install/upgrade the chart with the release name opentelemetry-kube-stack:
$ helm upgrade -i opentelemetry-kube-stack appscode/opentelemetry-kube-stack -n monitoring --create-namespace --version=0.14.12
The command deploys OpenTelemetry Stack on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall the opentelemetry-kube-stack:
$ helm uninstall opentelemetry-kube-stack -n monitoring
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration
The following table lists the configurable parameters of the opentelemetry-kube-stack chart and their default values.
| Parameter | Description | Default |
|---|---|---|
| fullnameOverride | Top level field indicating an override for fullname | "" |
| namespaceOverride | Top level field indicating an override for the namespace | "" |
| clusterName | Top level field specifying the name of the Kubernetes cluster. When using a Managed Kubernetes Service, it's recommended to use the cluster name assigned by the service for better integration. | "unknown_k8s_cluster" |
| extraEnvs | Extra environment variables to add to each collector, bridge and instrumentation | [] |
| cleanupJob.enabled | It is recommended to always keep this enabled so that running helm uninstall works properly. For non-helm installations i.e. ones created via helm template, it may make sense to disable this. For those installations, ensure that uninstallation for the operator happens after the deletion of the CRs. | true |
| cleanupJob.image.repository | rancher/kubectl | |
| cleanupJob.image.tag | v1.34.1 | |
| cleanupJob.image.digest | When digest is set to a non-empty value, images will be pulled by digest (regardless of tag value). | "" |
| cleanupJob.existingServiceAccount | To use the existingServiceAccount | "" |
| cleanupJob.securityContext.runAsNonRoot | true | |
| cleanupJob.securityContext.runAsUser | 65534 | |
| cleanupJob.securityContext.allowPrivilegeEscalation | false | |
| cleanupJob.securityContext.seccompProfile.type | RuntimeDefault | |
| crds.installOtel | Control whether the opentelemetry.io CRDS should be installed. | true |
| crds.installPrometheus | Control whether the monitoring.coreos CRDS should be installed. | true |
| opentelemetry-operator.enabled | Field indicating whether the operator is enabled or not | true |
| opentelemetry-operator.manager.collectorImage.repository | otel/opentelemetry-collector-k8s | |
| opentelemetry-operator.admissionWebhooks.failurePolicy | Policy for handling failures Setting this allows for an installation of the otel operator at the same time as the custom resources it manages. | "Ignore" |
| opentelemetry-operator.crds.create | false | |
| defaultCRConfig.enabled | true | |
| defaultCRConfig.suffix | Suffix for the collector pool, by default the release name is prepended | "collector" |
| defaultCRConfig.fullnameOverride | fullnameOverride allows overriding the collector's name | "" |
| defaultCRConfig.annotations | Annotations for the collector | {} |
| defaultCRConfig.labels | Labels for the collector | {} |
| defaultCRConfig.scrape_configs_file | scrape_configs_file allows the user to load an external file into the collector's prometheus scrape_configs. This is added to assist users coming from the prometheus ecosystem by allowing users to simply copy and paste directly from prometheus into this file to use the same config. | "" |
| defaultCRConfig.managementState |
Deploy opentelemetry-kube-stack with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has opentelemetry-kube-stack on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartopentelemetry-kube-stack is pinned at v0.14.12 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply