Monitor Kubernetes Resources - cpu memory usage by pods - kubectl view allocations - kubectl plugin

Описание к видео Monitor Kubernetes Resources - cpu memory usage by pods - kubectl view allocations - kubectl plugin

Monitor kubernetes resource consumption by pods / nodes / namespaces using a very interesting kubectl plugin - kubectl view allocations.

kubectl plugin lists allocations for resources (cpu, memory, gpu,...) as defined into the manifest of nodes and running pods. It doesn't list usage like kubectl top. It can provide result grouped by namespaces, nodes, pods and filtered by resources'name.

Columns displayed :

Requested : Quantity of resources requested by the container in the pod's manifest. It's the sum group by pod, namespace, node where container is running. With percentage of resources requested over what is allocatable in the group.
Limit : Quantity of resources max (limit) requestable by the container in the pod's manifest. It's the sum group by pod, namespace, node where container is running. With percentage of resources max / limit over what is allocatable in the group.
Allocatable : Allocatable resources defined (or detected) on nodes.
Free : Allocatable - max (Limit, Requested)
Utilization : Quantity of resources (cpu & memory only) used as reported by Metrics API. It's disable by default, metrics-server is optional and should be setup into the cluster.

Installation script -
curl https://raw.githubusercontent.com/dav... | bash

Contents:
00:00 - Introduction to resource monitoring
01:00 - Installing kubectl view allocations plugin
02:50 - Usage and examples

Комментарии

Информация по комментариям в разработке