@@ -6,9 +6,9 @@ title: Core metrics pipeline
6
6
---
7
7
8
8
Starting from Kubernetes 1.8, resource usage metrics, such as container CPU and memory usage,
9
- are available in Kubernetes though the the Metrics API. These metrics can be either accessed directly
9
+ are available in Kubernetes through the Metrics API. These metrics can be either accessed directly
10
10
by user, for example by using ` kubectl top ` command, or used by a controller in the cluster, e.g.
11
- Horizontal Pod Autoscaler to make decisions.
11
+ Horizontal Pod Autoscaler, to make decisions.
12
12
13
13
## The Metrics API
14
14
@@ -18,18 +18,21 @@ so it's not possible for example to get the amount of resources used by a
18
18
given node 10 minutes ago.
19
19
20
20
The API no different from any other API:
21
- it is discoverable through the same endpoint as the other Kubernetes APIs under ` /apis/metrics.k8s.io/ ` path.
22
- It also offers the same security, scalability and reliability guarantees.
21
+
22
+ - it is discoverable through the same endpoint as the other Kubernetes APIs under ` /apis/metrics.k8s.io/ ` path
23
+ - it offers the same security, scalability and reliability guarantees
23
24
24
25
The API is defined in [ k8s.io/metrics] ( https://github.com/kubernetes/metrics/blob/master/pkg/apis/metrics/v1beta1/types.go )
25
- repository. You can find more information about the API resources there.
26
+ repository. You can find more information about the API there.
27
+
28
+ The API requires metrics server to be deployed in the cluster. Otherwise it will be not available.
26
29
27
30
## Metrics Server
28
31
29
32
[ Metrics Server] ( https://github.com/kubernetes-incubator/metrics-server ) is a cluster-wide aggregator of resource usage data.
30
- Starting from Kubernetes 1.8 it's deployed by default in clusters crated by ` kube-up.sh ` script
31
- as a Deployment object.
32
- User can deploy it also using the provided [ deployment yamls] ( https://github.com/kubernetes-incubator/metrics-server/tree/master/deploy ) .
33
+ Starting from Kubernetes 1.8 it's deployed by default in clusters created by ` kube-up.sh ` script
34
+ as a Deployment object. If you use a different Kubernetes setup mechanism you can deploy it using the provided
35
+ [ deployment yamls] ( https://github.com/kubernetes-incubator/metrics-server/tree/master/deploy ) .
33
36
It's supported in Kubernetes 1.7+ (see details below).
34
37
35
38
Metric server collects metrics from the Summary API, exposed by [ Kubelet] ( /docs/admin/kubelet/ ) on each node.
0 commit comments