The Datadog Agent on Kubernetes - What to Decide with Helm
When you install the Datadog Agent on Kubernetes with the Helm chart, this article organizes which keys in values.yaml to decide through the lens of "what happens if you do not decide them." It covers placing the key in a Secret, the two keys for log collection, the places where kubelet TLS or taints cause trouble, and what has to be visible for success.
What You Decide in values.yaml When Installing with Helm
The deployment pattern for putting the Datadog Agent on Kubernetes (the two tiers of a node-side DaemonSet and the Cluster Agent) and the items to decide before adoption are left to the Container Monitoring explanation, and the choice between the Operator and the Helm chart to the Datadog Operator glossary page. This article covers what comes after you have chosen Helm, surveying the keys in datadog-values.yaml that the official procedure touches from the standpoint of what happens if you do not decide them (as of September 2026; source: Install the Datadog Agent on Kubernetes).
| Key | What to decide | If not decided |
|---|---|---|
datadog.apiKeyExistingSecret | The name of the Secret holding the API key | The key is not passed and the Agent cannot send |
datadog.site | The destination site | Data is sent to a site other than your organization's, and nothing appears on your screen |
datadog.clusterName | A unique name for the cluster | Hosts and Cluster Checks cannot be filtered per cluster |
datadog.logs.enabled / datadog.logs.containerCollectAll | Whether to collect logs, and whether to target all containers | Disabled by default. Not a single line of logs arrives |
agents.tolerations | Whether to place the DaemonSet on tainted nodes as well | Agent Pods do not land on nodes with taints |
datadog.kubelet.tlsVerify | Whether to turn off TLS verification to the kubelet | In some environments the kubelet cannot be reached, and node and container values are missing |
The top three are the official minimal values; the rest are keys you add when "collecting logs" or "getting stuck in a particular environment." For the procedure itself, follow the official page.
Do Not Write the Key in values; Put It in a Secret
In the official Helm procedure, you create a Secret for the API key with kubectl create secret generic datadog-secret before installing the chart, and the values side references only the name (as of September 2026; source: Install the Datadog Agent on Kubernetes). The minimal values including log collection take this form.
datadog:
apiKeyExistingSecret: datadog-secret
clusterName: <CLUSTER_NAME>
site: <DATADOG_SITE>
logs:
enabled: true
containerCollectAll: trueclusterName has constraints: only lowercase letters, digits, and hyphens, starting with a letter, and no more than 80 characters. The thinking behind keys is left to the API Key glossary page and how to choose a site to the Datadog Site glossary page.
Two Keys Collect Logs, and source Is Attached Automatically
In Helm, set datadog.logs.enabled and datadog.logs.containerCollectAll to true and upgrade the chart, and logs from all containers begin to flow (as of September 2026; source: Kubernetes log collection). At this point the Agent automatically attaches source and service to each container's logs using the short form of the image name. In the official example, a container from gcr.io/owner/example-image:latest gets example-image as source / service / short_image.
- 1.
containerCollectAll: true- Targets the logs of all containers - 2. The short image name is attached automatically as source / service
- 3. Using source as the clue, the standard pipeline for each integration is applied
- 4. Override service with the Pod label
tags.datadoghq.com/serviceto align it with the APM service name - 5. Exclude containers you do not want with
DD_CONTAINER_EXCLUDE_LOGSor the annotationad.datadoghq.com/logs_exclude
What happens after the source arrives is left to the Log Pipeline glossary page, and how to write per-Pod configuration via annotations to the Autodiscovery glossary page. Since the Agent's own logs are included too, the official docs also name the Agent's own logs as the first use for exclusion.
Stuck Points Are Environment-Dependent; Look Them Up on the Official Per-Distribution Page
When chasing a stuck point right after installation, suspect "the quirks of that Kubernetes environment" before the chart. The official docs provide basic configuration per environment such as EKS / AKS / GKE / OpenShift / Rancher, and EKS is explicitly stated to need "no special configuration" (as of September 2026; source: Kubernetes Distributions).
| Symptom | Environment where it occurs | Key to add |
|---|---|---|
| Agent Pods run but node and container values are missing | Windows nodes on AKS, Linux nodes on virtual networks with custom DNS (name resolution of spec.nodeName does not work inside the Pod) | datadog.kubelet.tlsVerify: false. Do not write it together with a kubelet host path specification |
| Agent Pods do not land on some nodes | Tainted nodes such as GKE Autopilot Spot Pods or compute classes | Add entries to agents.tolerations that tolerate the relevant taints |
| Does not install on Windows nodes | Clusters containing Windows nodes | Add --set targetSystem=windows to helm install |
The setting that turns off tlsVerify also appears in the OpenShift and Rancher examples, but it is not a setting that is fine to turn off in every environment; read it as limited to the cases where the official docs state the conditions.
Minimum Versions of Kubernetes and the Agent
Another environment dependency is the version combination. The official docs tabulate the minimum Agent and Cluster Agent required for each Kubernetes version and recommend aligning the Agent and Cluster Agent to the same version (as of September 2026; source: Install the Datadog Agent on Kubernetes).
| Kubernetes | Agent | Cluster Agent | Reason |
|---|---|---|---|
| 1.16.0 or later | 7.19.0 or later | 1.9.0 or later | Deprecation of kubelet metrics |
| 1.21.0 or later | 7.36.0 or later | 1.20.0 or later | Deprecation of Kubernetes resources |
| 1.22.0 or later | 7.37.0 or later | 7.37.0 or later | Dynamic service account tokens |
| 1.25.0 or later | 7.40.0 or later | 7.40.0 or later | v1 API group |
| 1.33.0 or later | 7.67.0 or later | 7.67.0 or later | Fix for inconsistency with AllocatedResources in /pods output |
The way to read the table is "upgrade the Agent before upgrading the cluster." If you upgrade only the cluster side first, an Agent that does not meet the minimum calls old APIs and values go missing. The Helm chart version and the image version are separate things, so if you pin the Agent version in values, review that as well.
What Has to Be Visible for Success
The official verification procedure is that within a few minutes of deployment, Agent Pods tagged app.kubernetes.io/component:agent appear on the Containers page in Datadog (as of September 2026; source: Install the Datadog Agent on Kubernetes). As the step before that, look at Pod status and the Agent's self-report on the cluster side (source: Agent Commands).
kubectl exec -it <POD_NAME> -- agent statusOn the Cluster Agent side it is datadog-cluster-agent status.
- 1. All Pods of the Agent DaemonSet and the Cluster Agent are Running
- 2. The kubelet-related checks are listed without warnings under Running Checks in
agent status - 3. Agent Pods appear on the Containers page (a few minutes)
- 4. The cluster's resources are listed in the Kubernetes section and the Orchestrator Explorer
- 5. If logs are enabled, logs whose source is the image name arrive in the Log Explorer
You can isolate the cause as follows: if at step 1 the DaemonSet's DESIRED count is lower than the number of nodes, taints; if Pods stay Pending, insufficient resources; if they are Running but the kubelet-related checks are red at step 2, TLS verification; if you get through step 3 and only step 5 fails to arrive, the log keys are still false.
upgrade and the Next Features to Add
After changing values, upgrade the chart as in the official procedure to apply them. For upgrade caveats, the official documentation directs you to the Helm chart's README (Upgrading section), so read that first when crossing versions (as of September 2026; source: Install the Datadog Agent on Kubernetes). The image source is also a decision point: the chart determines the source registry from the Datadog site, the cluster type, and the value of registryMigrationMode. The features the official docs name to add after installation are APM trace collection, Prometheus / OpenMetrics ingestion, and control plane monitoring. APM requires both the receiving end on the Agent side and instrumentation on the application side (auto-instrumentation). The preceding single-host installation is handled by the article on running in Docker and the Linux installation article.