Loading

kube-apiserver

<div class="condensed-table">
| | |
| --- | --- |
| Version | 1.70.1 (View all) |
| Compatible Kibana version(s) | 8.15.0 or higher |
| Supported Serverless project types
What’s this? | Security
Observability |
| Subscription level
What’s this? | Basic |

</div>

This is the apiserver dataset of the Kubernetes package, in charge of retrieving metrics from the Kubernetes API (available at /metrics).

This metricset needs access to the apiserver component of Kubernetes, accessible typically by any POD via the kubernetes.default service or via environment variables (KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT).

If Leader Election is activated (default behaviour) only the elastic agent which holds the leadership lock will retrieve metrics from the apiserver. This is relevant in multi-node kubernetes cluster and prevents duplicate data.

When the API uses https, the pod will need to authenticate using its default token and trust the server using the appropriate CA file.

Configuration example using https and token based authentication:

In order to access the /metrics path of the API service, some Kubernetes environments might require the following permission to be added to a ClusterRole.

rules:
- nonResourceURLs:
  - /metrics
  verbs:
  - get