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).

values.yaml keys appearing in the official procedure and related pages, and what happens if you do not decide them
KeyWhat to decideIf not decided
datadog.apiKeyExistingSecretThe name of the Secret holding the API keyThe key is not passed and the Agent cannot send
datadog.siteThe destination siteData is sent to a site other than your organization's, and nothing appears on your screen
datadog.clusterNameA unique name for the clusterHosts and Cluster Checks cannot be filtered per cluster
datadog.logs.enabled / datadog.logs.containerCollectAllWhether to collect logs, and whether to target all containersDisabled by default. Not a single line of logs arrives
agents.tolerationsWhether to place the DaemonSet on tainted nodes as wellAgent Pods do not land on nodes with taints
datadog.kubelet.tlsVerifyWhether to turn off TLS verification to the kubeletIn some environments the kubelet cannot be reached, and node and container values are missing
Source: Install the Datadog Agent on Kubernetes (Installation / Helm), Kubernetes log collection (Log collection), and Kubernetes Distributions (configuration examples for AKS / GKE Autopilot)

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: true

clusterName 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/service to align it with the APM service name
  • 5. Exclude containers you do not want with DD_CONTAINER_EXCLUDE_LOGS or the annotation ad.datadoghq.com/logs_exclude
Source: Kubernetes log collection (Log discovery / Filtering / Tagging)

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).

Environment-dependent stuck points and the keys to add in values
SymptomEnvironment where it occursKey to add
Agent Pods run but node and container values are missingWindows 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 nodesTainted nodes such as GKE Autopilot Spot Pods or compute classesAdd entries to agents.tolerations that tolerate the relevant taints
Does not install on Windows nodesClusters containing Windows nodesAdd --set targetSystem=windows to helm install
Source: Kubernetes Distributions (AKS / Without TLS verification and GKE / Spot pods and compute classes) and Install the Datadog Agent on Kubernetes (Helm)

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 versions and the minimum Agent required (official table as of September 2026)
KubernetesAgentCluster AgentReason
1.16.0 or later7.19.0 or later1.9.0 or laterDeprecation of kubelet metrics
1.21.0 or later7.36.0 or later1.20.0 or laterDeprecation of Kubernetes resources
1.22.0 or later7.37.0 or later7.37.0 or laterDynamic service account tokens
1.25.0 or later7.40.0 or later7.40.0 or laterv1 API group
1.33.0 or later7.67.0 or later7.67.0 or laterFix for inconsistency with AllocatedResources in /pods output
Source: Install the Datadog Agent on Kubernetes (Minimum Kubernetes and Datadog Agent versions)

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 status

On 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
Source: Install the Datadog Agent on Kubernetes (Confirm Agent installation / Next steps) and Kubernetes log collection (Tagging)

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.

References

Share