Landmark Technology - www.mylandmarktech.com

TEL: +1 437 215 2483 - TEL: +1 437 215 2483

Kubernetes Metrics Server

Metrics-server aggregates resource consumption data like CPU and memory usage for Kubernetes nodes, pods and containers. These metrics are collected from the API exposed by the Kubelet on each node.

The metrics server is commonly used by other Kubernetes add ons, such as the Horizontal Pod Autoscaler or the Kubernetes Dashboard.

It is not deployed by default.

Deployment

In order to deploy metrics-server in your kubernetes master machine clone https://github.com/LandmakTechnology/metric-server.git and run the commands below:

# clone manifest repo
git clone https://github.com/LandmakTechnology/metric-server
# deploy metricAPI
kubectl apply -f metric-server/metrics-server-deploy.yml

Usage

# Display node metrics
 kubectl top nodes

# Display pod metrics
 kubectl top pods

User guide

You can find the user guide in the official Kubernetes documentation.

Design

The detailed design of the project can be found in the following docs:

For the broader view of monitoring in Kubernetes take a look into Monitoring architecture