Cette page n'est pas encore disponible en français, sa traduction est en cours. Si vous avez des questions ou des retours sur notre projet de traduction actuel, n'hésitez pas à nous contacter.
This page contains instructions for setting up the Orchestrator Explorer using a DaemonSet.
Cluster Agent version >= 1.11.0 is required before configuring the DaemonSet. The Cluster Agent must be running, and the Agent must be able to communicate with it. See the Cluster Agent Setup for configuration.
Set the Cluster Agent container with the following environment variable:
Set the Cluster Agent ClusterRole with the following RBAC permissions.
Note in particular that for the apps and batch apiGroups, Live Containers need
permissions to collect common Kubernetes resources (pods, services,
nodes, and others), which should be already in the RBAC if you followed Cluster
Agent Setup. But if they are missing, ensure they are
added (after deployments, replicasets):
ClusterRole:- apiGroups:# To create the datadog-cluster-id ConfigMap- ""resources:- configmapsverbs:- create- get- update...- apiGroups:# Required to get the kube-system namespace UID and generate a cluster ID- ""resources:- namespacesverbs:- get...- apiGroups:# To collect new resource types- "apps"resources:- deployments- replicasets- daemonsets- statefulsetsverbs:- list- get- watch- apiGroups:- "batch"resources:- cronjobs- jobsverbs:- list- get- watch- apiGroups:- ""resources:- serviceaccountsverbs:- list- get- watch- apiGroups:- rbac.authorization.k8s.ioresources:- roles- rolebindings- clusterroles- clusterrolebindingsverbs:- list- get- watch- apiGroups:- networking.k8s.ioresources:- ingressesverbs:- list- watch...
These permissions are needed to create a datadog-cluster-id ConfigMap in the same Namespace as the Agent DaemonSet and the Cluster Agent Deployment, as well as to collect supported Kubernetes resources.
If the cluster-id ConfigMap isn’t created by the Cluster Agent, the Agent pod cannot collect resources. In such a case, update the Cluster Agent permissions and restart its pods to let it create the ConfigMap, and then restart the Agent pod.
The Process Agent, which runs in the Agent DaemonSet, must be enabled and running (it doesn’t need to run the process collection), and configured with the following options:
For Agent versions 7.51.0+, the orchestrator check runs on the Agent container instead of the Process Agent container. To configure the Agent container:
(Optional) Set collectors under instances section to specify the resources to be collected. Create orchestrator.yaml in ConfigMap. Sample configuration:
Acceptable values for collectors are <collector_name> (e.g “cronjobs”) or <apigroup_and_version>/<collector_name> (e.g. “batch/v1/cronjobs”). For CRDs, only <apigroup_and_version>/<collector_name> is accepted.
In some setups, the Process Agent and Cluster Agent cannot automatically detect a Kubernetes cluster name. If this happens, the feature does not start, and the following warning displays in the Cluster Agent log: Orchestrator explorer enabled but no cluster name set: disabling. In this case, add the following options in the env section of both the Cluster Agent and the Process Agent: