opentelemetry-demo
opentelemetry demo helm chart
About this chart
OpenTelemetry Demo Helm Chart
The helm chart installs the OpenTelemetry Demo in a Kubernetes cluster.
Prerequisites
- Kubernetes 1.24+
- Helm 4.0+
Add Repository (can be skipped for OCI repository)
helm repo add open-telemetry https://open-telemetry.github.io/opentelemetry-helm-charts
helm repo update
See helm repo for command documentation.
Install Chart
For HTTPS repository:
helm install opentelemetry-demo open-telemetry/opentelemetry-demo
For OCI repository:
helm install opentelemetry-demo oci://ghcr.io/open-telemetry/opentelemetry-helm-charts/opentelemetry-demo
Upgrading
See UPGRADING.md.
OpenShift
Installing the chart on OpenShift requires the following additional steps:
-
Create a new project:
oc new-project opentelemetry-demo -
Create a new service account:
oc create sa opentelemetry-demo -
Add the service account to the
anyuidSCC (may require cluster admin):oc adm policy add-scc-to-user anyuid -z opentelemetry-demo -
Add
viewrole to the service account to allow Prometheus seeing the services pods:oc adm policy add-role-to-user view -z opentelemetry-demo -
Add
privilegedSCC to the service account to allow Grafana to run:oc adm policy add-scc-to-user privileged -z opentelemetry-demo -
Install the chart with the following command:
helm install my-otel-demo charts/opentelemetry-demo \ --namespace opentelemetry-demo \ --set serviceAccount.create=false \ --set serviceAccount.name=opentelemetry-demo \ --set prometheus.rbac.create=false \ --set prometheus.serviceAccounts.server.create=false \ --set prometheus.serviceAccounts.server.name=opentelemetry-demo \ --set grafana.rbac.create=false \ --set grafana.serviceAccount.create=false \ --set grafana.serviceAccount.name=opentelemetry-demo
Chart Parameters
Chart parameters are separated in 4 general sections:
- Default - Used to specify defaults applied to all demo components
- Components - Used to configure the individual components (microservices) for the demo
- Observability - Used to enable/disable dependencies
- Sub-charts - Configuration for all sub-charts
Default parameters (applied to all demo components)
The default parameters (default.*), including default.image.repository and
default.image.tag, are documented in the Values section.
Component parameters
The OpenTelemetry demo contains several components (microservices). Each
component is configured with a common set of parameters. All components will
be defined within components.[NAME] where [NAME] is the name of the demo
component.
Note The following parameters require a
components.[NAME].prefix where[NAME]is the name of the demo component
| Parameter | Description | Default |
|---|---|---|
enabled | Is this component enabled | true |
useDefault.env | Use the default environment variables in this component | true |
imageOverride.repository | Name of image for this component | Defaults to the overall default image repository |
imageOverride.tag | Tag of the image for this component | Defaults to the overall default image tag |
imageOverride.pullPolicy | Image pull policy for this component | IfNotPresent |
imageOverride.pullSecrets | Image pull secrets for this component | [] |
service.type | Service type used for this component | ClusterIP |
service.port | Service port used for this component | nil |
service.nodePort | Service node port used for this component | nil |
service.annotations | Annotations to add to the component's service | {} |
ports | Array of ports to open for deployment and service of this component | [] |
env | Array of environment variables added to this component | Each component will have its own set of environment variables |
envOverrides | Used to override individual environment variables without re-specifying the entire array | [] |
replicas | Number of replicas for this component | 1 for kafka, and redis ; nil otherwise |
resources | CPU/Memory resource requests/limits | Each component will have a default memory limit set |
schedulingRules.nodeSelector | Node labels for pod assignment | {} |
schedulingRules.affinity | Man of node/pod affinities | {} |
schedulingRules.tolerations | Tolerations for pod assignment | [] |
securityContext | Container security context | {} |
podSecurityContext | Pod security context s | {} |
podLabels | Pod labels for this component | {} |
podAnnotations | Pod annotations for this component | {} |
ingress.enabled | Enable the creation of Ingress rules | false |
ingress.annotations | Annotations to add to the ingress rule | {} |
ingress.ingressClassName | Ingress class to use. If not specified default Ingress class will be used. | nil |
ingress.hosts | Array of Hosts to use for the ingress rule. | [] |
ingress.hosts[].paths | Array of paths / routes to use for the ingress rule host. | [] |
ingress.hosts[].paths[].path | Actual path route to use | nil |
ingress.hosts[].paths[].pathType | Path type to use for the given path. Typically this is Prefix. | nil |
ingress.hosts[].paths[].port | Port to use for the given path | nil |
ingress.additionalIngresses | Array of additional ingress rules to add | [] |
ingress.additionalIngresses[].name | Each additional ingress rule needs to have a unique name | nil |
command | Command & arguments to pass to the container being spun up for this service | [] |
additionalVolumeMounts | Array of Volumes that will be mounted | [] |
mountedConfigMaps[].name | Name of the Volume that will be used for the ConfigMap mount | nil |
mountedConfigMaps[].mountPath | Path where the ConfigMap data will be mounted | nil |
mountedConfigMaps[].subPath | SubPath within the mountPath. Used to mount a single file into the path. | nil |
mountedConfigMaps[].existingConfigMap | Name of the existing ConfigMap to mount | nil |
mountedConfigMaps[].data | Contents of a ConfigMap. Keys should be the names of the files to be mounted. | {} |
mountedEmptyDir[].name | Name of the EmptyDir volume that will be used for the volume mount | nil |
mountedEmptyDir[].mountPath | Path where the EmptyDir data will be mounted | nil |
mountedEmptyDir[].subPath | SubPath within the mountPath. Used to mount a single file into the path. | nil |
initContainers | Array of init containers to add to the pod | [] |
initContainers[].name | Name of the init container | nil |
initContainers[].image | Image to use for the init container | nil |
initContainers[].command | Command to run for the init container | nil |
sidecarContainers | Array of sidecar containers to add to the pod | [] |
additionalVolumes | Array of additional volumes to add to the pod | [] |
Sub-charts
The OpenTelemetry Demo Helm chart depends on 5 sub-charts:
- OpenTelemetry Collector
- Jaeger
- Prometheus
- Grafana
- OpenSearch
Parameters for each sub-chart can be specified within that sub-chart's respective top level. This chart will override some of the dependent sub-chart parameters by default. The overriden parameters are specified below.
OpenTelemetry Collector
Note The following parameters have a
opentelemetry-collector.prefix.
| Parameter | Description | Default |
|---|---|---|
enabled | Install the Op |
Deploy opentelemetry-demo with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has opentelemetry-demo 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-demo is pinned at v0.42.8 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