Landmark Technology - www.mylandmarktech.com
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.
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
# Display node metrics
kubectl top nodes
# Display pod metrics
kubectl top pods
You can find the user guide in the official Kubernetes documentation.
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