If you haven’t yet, review the setup instructions to install the Datadog Cluster Agent and enable event collection.
Disable leader election in your Datadog Node Agent Daemonset by setting the leader_election
variable or DD_LEADER_ELECTION
environment variable to false
.
In your Cluster Agent deployment file, set the DD_COLLECT_KUBERNETES_EVENTS
and DD_LEADER_ELECTION
environment variable to true
:
- name: DD_COLLECT_KUBERNETES_EVENTS
value: "true"
- name: DD_LEADER_ELECTION
value: "true"
Enabling the leader election in this way ensures that only one Cluster Agent collects the events.
Additional helpful documentation, links, and articles:
On this Page