Installing Datadog on EKS - Add-on, Helm, and Fargate
When installing Datadog on Amazon EKS, what splits the procedure is less which tool you install with than whether your pods run on EC2 nodes or on Fargate. This guide tabulates the combinations of three installation methods and two node types, and follows through the profiles, Secret, RBAC, and log paths that Fargate requires.
Before choosing among three installation methods, check whether your nodes are EC2 or Fargate
There are three paths for running the Datadog Agent in an EKS cluster: installing the Datadog Helm chart, installing the Datadog Operator with Helm, and installing the Operator as an Amazon EKS add-on (as of October 2026). On EC2 nodes, you place one Agent per node with a DaemonSet; on Fargate pods, you place a sidecar Agent in each pod. Because Fargate nodes are managed by AWS and hidden from users, the official documentation shows the per-pod sidecar approach. The DaemonSet Agent installed through the add-on only sees pods on EC2.
| Installation method | EC2 nodes | Fargate pods |
|---|---|---|
| Helm chart (datadog/datadog) | Deploy the Node Agent as a DaemonSet | Inject by setting enabled and provider: fargate under clusterAgent.admissionController.agentSidecarInjection |
| Operator installed with Helm | Deploy the Node Agent from the DatadogAgent resource | Inject by setting enabled and provider: fargate under features.admissionController.agentSidecarInjection |
| Operator installed as an EKS add-on | Deploy by applying the DatadogAgent resource | If the add-on is v0.1.9 or later, enable injection using the Operator format (the DaemonSet Agent only sees pods on EC2) |
If you want the add-on to cover Fargate as well, check the add-on version with aws eks describe-addon (source: describe-addon). If it is v0.1.9 or later, enable sidecar injection using the Operator format in the Fargate guide. In clusters that mix EC2 nodes and Fargate pods, install on the node side using the standard Kubernetes procedure and cover the Fargate pods separately. Deciding Helm values is covered in the article on installing with Helm, so here we follow only the points where the procedure diverges for EKS and Fargate.
There are no EKS-specific settings, but set the cluster name explicitly
The official documentation by distribution states that EKS requires no special configuration. The basic form when installing with the Operator is simply to write the cluster name, API key, and application key in the DatadogAgent resource. This form works for an Operator installed with Helm as well as one installed as an add-on, provided the Agent is placed in the same namespace as the Operator (as of October 2026).
| Installation method | Key to write |
|---|---|
| Helm chart | datadog.clusterName |
| Operator (Helm / EKS add-on) | spec.global.clusterName in DatadogAgent |
Even so, it is safer not to omit the cluster name. The official documentation cautions that if access to IMDS v1 is blocked on the nodes, the Agent cannot resolve the cluster name, and some features such as Orchestrator Explorer do not work. The setting that has the Agent fetch metadata with IMDS v2 is named ec2_prefer_imdsv2. This note is in Installing the Datadog Agent on Amazon EKS with the Datadog Operator add-on. If your nodes allow only IMDS v2, writing the cluster name from the start saves you from hunting for the cause later when features are missing.
The Operator installed as an EKS add-on differs from a Helm installation in two ways
As prerequisites, subscribe to the Datadog Operator product in AWS Marketplace and make sure kubectl is available. In the AWS console, choose Datadog Operator from Get more add-ons on the cluster's add-ons tab; with the CLI, install it with the following command.
aws eks create-addon --addon-name datadog_operator --region <AWS_REGION> --cluster-name <CLUSTER_NAME>Installation proceeds asynchronously, so check the status with aws eks describe-addon; it is complete when the datadog-operator pod is running. What differs from a regular Helm installation is that the Operator image can only be pulled from the EKS repository, and that the chart values you can override are restricted by a schema file.
- Subscribe to Datadog Operator in AWS Marketplace
- Install the Operator as an add-on (the default namespace is datadog-agent)
- Put the API key, application key, and token into a single Secret
- Apply the DatadogAgent manifest
By default, the Agent and Cluster Agent images are pulled from public registries. To pull them from a private EKS registry, add global.registry to the manifest (as of October 2026). When removing it, delete the DatadogAgent resource first and then remove the add-on. If you reverse the order, the Agent keeps running, the resources cannot be cleaned up because the Operator is gone, and deleting the namespace also fails.
Place one sidecar Agent in each Fargate pod
Fargate pods do not run on nodes running on EC2, so the system.cpu.* and system.memory.* values the Agent reports cover only the Agent container itself. So you place an Agent as a sidecar in each pod you want to watch and have it cover the other containers in the same pod. What the sidecar collects is Kubernetes metrics, integration checks through Autodiscovery, and APM and DogStatsD metrics. The minimum Agent version is 7.18.0, and Cloud Network Monitoring is not available on EKS Fargate (as of October 2026). If you have only Fargate pods, specify agents.enabled=false in the Helm values so that the DaemonSet for EC2 is not created. ECS Fargate uses a different procedure, covered in the article on installing on ECS Fargate.
Before injection, prepare the Fargate profile, Secret, and RBAC
Injection targets pods that match a Fargate profile, and pods that do not specify a profile run on EC2 nodes. Create the Secret with the name datadog-secret and put in the Datadog API key and a 32-character alphanumeric token that the Cluster Agent and Agent use to verify each other. The add-on procedure also puts the application key into a Secret with the same name, so here we create the three values together in one Secret. The token is created in advance so that the same value can be passed to both the EC2-side installation and the Fargate pods, and if you inject with the Admission Controller, it must have this name.
kubectl create secret generic datadog-secret -n <NAMESPACE> \
--from-literal api-key=<DATADOG_API_KEY> \
--from-literal app-key=<DATADOG_APP_KEY> \
--from-literal token=<CLUSTER_AGENT_TOKEN>If you place the EC2-side installation and the Fargate pods in different namespaces, create the same Secret in both namespaces (as of October 2026).
- Create a Fargate profile and decide which pods it targets
- Put the API key, application key, and token into datadog-secret
- Create a ClusterRole and bind it to the pods' ServiceAccount with a ClusterRoleBinding
- Enable sidecar injection in the Admission Controller
- Label the pods after the Cluster Agent is running
The RBAC ClusterRole includes permissions to read nodes and namespaces, plus kubelet-facing permissions such as nodes/stats and nodes/pods. The label is agent.datadoghq.com/sidecar: fargate, and it goes on the pod, not on a parent workload such as a Deployment. Only newly created pods are injected, and serviceAccountName is not rewritten. There is also a way to write the sidecar manually, but because it means editing workload manifests every time, the official documentation recommends the Admission Controller.
Decide where the Cluster Agent runs and the log path separately from EC2 nodes
The official documentation recommends running the Cluster Agent to use event collection, the Kubernetes resources views, and cluster checks. In clusters that mix EC2 and Fargate, add the Cluster Agent or Cluster Checks Runner to the same installation as the EC2-side Node Agent DaemonSet. In that case, use the Secret and token created as prerequisites. When writing the sidecar manually, set DD_CLUSTER_AGENT_ENABLED, DD_CLUSTER_AGENT_AUTH_TOKEN, and DD_CLUSTER_AGENT_URL to connect to the Cluster Agent. If you inject with the Admission Controller, the environment variables are filled in automatically from the defaults of Datadog's Fargate profile. The role of the Cluster Agent itself is left to the Cluster Agent glossary entry.
| Node type and path | How they are collected | Key settings |
|---|---|---|
| EC2 nodes | The node's Agent collects logs from the containers on that node | Enable logs in the Helm values or the DatadogAgent resource |
| Fargate (directly with the Agent) | The sidecar Agent fetches logs from the kubelet | With Agent 7.71.0 or later, set DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_KUBELET_API_LOGGING_ENABLED on the Cluster Agent to true |
| Fargate (Fluent Bit) | Send to CloudWatch Logs with Fluent Bit and deliver to Datadog with the Datadog Forwarder | Specify CloudWatch Logs as the output in a ConfigMap |
With direct collection by the Agent, adding one environment variable to the Cluster Agent enables fetching from the kubelet in sidecars injected from then on. Which containers to collect from is decided separately: either put DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL in the sidecar to target all containers, or write Autodiscovery annotations per container. The Fluent Bit path adds components because it goes through CloudWatch Logs, and the Datadog Forwarder also becomes something you have to operate. If your environment can meet the minimum Agent version, one option is to start by considering direct collection.
Check whether datadog-agent-injected is added to labeled pods
You can tell whether injection went through from the list of containers in the labeled pods. In the official documentation's example, a container named datadog-agent-injected is added to the injected pod, and the environment variable DD_EKS_FARGATE is set to true. If nothing is added after labeling, suspect that the pod was created before the Cluster Agent started and registered the webhook, and recreate the pod. If the container was added but values do not arrive, recheck whether RBAC is bound to the pod's ServiceAccount. Once both pass, confirm in the Container Monitoring UI that the Fargate pods appear alongside the pods on EC2 nodes.