Please follow the steps to run the Elastic Agent on Run Elastic Agent on Kubernetes managed by Fleet page.
On managed Kubernetes solutions like GKE, Elastic Agent has no access to several data sources. Find below the list of the non-available data:
Metrics from Kubernetes control plane components are not available. Consequently, metrics are not available for
kube-controller-managercomponents. In this regard, the respective dashboards will not be populated with data.
- Audit logs are available only on Kubernetes master nodes as well, hence cannot be collected by Elastic Agent.
Also note that the documentation page only applies to Standard GKE and not Autopilot. Autopilot support is a work in progress at the time of writing these docs.