Book Image

Getting Started with Kubernetes

By : Jonathan Baier
Book Image

Getting Started with Kubernetes

By: Jonathan Baier

Overview of this book

<p>Kubernetes is the tool that’s pushing the containerization revolution – largely driven by Docker – to another level. If Docker has paved the way for greater agility and control in the way we organize and manage our infrastructure, Kubernetes goes further, by helping you to orchestrate and automate container deployments on a massive scale. Kubernetes really does think big – and it’s time you did too!</p> <p>This book will show you how to start doing exactly that, showing you how to extend the opportunities that containerization innovations have brought about in new and even more effective ways. Get started with the basics - explore the fundamental elements of Kubernetes and find out how to install it on your system, before digging a little deeper into Kubernetes core constructs. Find out how to use Kubernetes pods, services, replication controllers, and labels to manage your clusters effectively and learn how to handle networking with Kubernetes.</p> <p>Once you’ve got to grips with these core components, you’ll begin to see how Kubernetes fits into your workflow. From basic updates to integrating Kubernetes with continuous delivery tools such as Jenkins and Gulp, the book demonstrates exactly how Kubernetes will transform the way you work. With further insights on how to install monitoring and security tools, this book provides you with a direct route through Kubernetes – so you can take advantage of it, fast!</p>
Table of Contents (16 chapters)
Getting Started with Kubernetes
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Preface
Index

Built-in monitoring


If you recall from Chapter 1, Kubernetes and Container Operations, we noted that our nodes were already running a number of monitoring services. We can see these once again by running the get pods command with the kube-system namespace specified as follows:

$ kubectl get pods --namespace=kube-system

The following screenshot is the result of the preceding command:

Figure 6.1. System pod listing

Again, we see a variety of services, but how does this all fit together? If you recall the Node (formerly minions) section from Chapter 2, Kubernetes – Core Concepts and Constructs, each node is running a kublet. The kublet is the main interface for nodes to interact and update the API server. One such update is the metrics of the node resources. The actual reporting of the resource usage is performed by a program named cAdvisor.

cAdvisor is another open source project from Google, which provides various metrics on container resource use. Metrics include CPU, memory, and network statistics...