Skip to Content
Kubernetes Cookbook - Second Edition
book

Kubernetes Cookbook - Second Edition

by Hideto Saito, Hui-Chuan Chloe Lee, Ke-Jou Carol Hsu
May 2018
Intermediate to advanced
554 pages
13h 51m
English
Packt Publishing
Content preview from Kubernetes Cookbook - Second Edition

How it works...

After you have installed influxDB, Heapster, and Grafana, let's learn how to get the status of the resource. First, you may use kubectl top now. Check the utilization of nodes and Pods, as well as verifying the functionality of monitoring:

// check the status of nodes$ kubectl top nodeNAME       CPU(cores)   CPU%      MEMORY(bytes)   MEMORY%minikube   236m         11%       672Mi           35%// check the status of Pods in Namespace kube-system$ kubectl top pod -n kube-systemNAME                                    CPU(cores)   MEMORY(bytes)heapster-5c448886d-k9wt7                1m           18Mikube-addon-manager-minikube             36m          32Mikube-dns-54cccfbdf8-j65x6               3m           22Mikubernetes-dashboard-77d8b98585-z8hch   0m           12Mimonitoring-grafana-65757b9656-8cl6d     0m           13Mimonitoring-influxdb-66946c9f58-hwv8g    1m           26Mi

Currently, kubectl top only covers ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Kubernetes Cookbook

Kubernetes Cookbook

Sébastien Goasguen, Michael Hausenblas
DevOps with Kubernetes - Second Edition

DevOps with Kubernetes - Second Edition

Hideto Saito, Hui-Chuan Chloe Lee, Cheng-Yang Wu

Publisher Resources

ISBN: 9781788837606Supplemental Content