Book description
An advanced exploration of the skills and knowledge required for operating Kubernetes clusters, with a focus on metrics gathering and alerting, with the goal of making clusters and applications inside them autonomous through self-healing and self-adaptation.
Key Features
- The sixth book of DevOps expert Viktor Farcic's bestselling DevOps Toolkit series, with an overview of advanced core Kubernetes techniques,-oriented towards monitoring and alerting.
- Takes a deep dive into monitoring, alerting, logging, auto-scaling, and other subjects aimed at making clusters resilient, self-sufficient, and self-adaptive
- Discusses how to customise and create dashboards and alerts
Book Description
Building on The DevOps 2.3 Toolkit: Kubernetes, and The DevOps 2.4 Toolkit: Continuous Deployment to Kubernetes, Viktor Farcic brings his latest exploration of the Docker technology as he records his journey to monitoring, logging, and autoscaling Kubernetes.
The DevOps 2.5 Toolkit: Monitoring, Logging, and Auto-Scaling Kubernetes: Making Resilient, Self-Adaptive, And Autonomous Kubernetes Clusters is the latest book in Viktor Farcic's series that helps you build a full DevOps Toolkit. This book helps readers develop the necessary skillsets needed to be able to operate Kubernetes clusters, with a focus on metrics gathering and alerting with the goal of making clusters and applications inside them autonomous through self-healing and self-adaptation.
Work with Viktor and dive into the creation of self-adaptive and self-healing systems within Kubernetes.
What you will learn
- Autoscaling Deployments and Statefulsets based on resource usage
- Autoscaling nodes of a Kubernetes cluster
- Debugging issues discovered through metrics and alerts
- Extending HorizontalPodAutoscaler with custom metrics
- Visualizing metrics and alerts
- Collecting and querying logs
Who this book is for
Readers with an advanced-level understanding of Kubernetes and hands-on experience.
Table of contents
- Title Page
- Copyright and Credits
- About Packt
- Dedication
- Contributors
- Preface
- Autoscaling Deployments and StatefulSets Based on Resource Usage
- Auto-scaling Nodes of a Kubernetes Cluster
-
Collecting and Querying Metrics and Sending Alerts
- Creating a cluster
- Choosing the tools for storing and querying metrics and alerting
- A quick introduction to Prometheus and Alertmanager
- Which metric types should we use?
- Alerting on latency-related issues
- Alerting on traffic-related issues
- Alerting on error-related issues
- Alerting on saturation-related issues
- Alerting on unschedulable or failed pods
- Upgrading old Pods
- Measuring containers memory and CPU usage
- Comparing actual resource usage with defined requests
- Comparing actual resource usage with defined limits
- What now?
- Debugging Issues Discovered Through Metrics and Alerts
- Extending HorizontalPodAutoscaler with Custom Metrics
-
Visualizing Metrics and Alerts
- Creating a cluster
- Which tools should we use for dashboards?
- Installing and setting up Grafana
- Importing and customizing pre-made dashboards
- Creating custom dashboards
- Creating semaphore dashboards
- A better dashboard for big screens
- Prometheus alerts vs. Grafana notifications vs. semaphores vs. graph alerts
- What now?
-
Collecting and Querying Logs
- Creating a cluster
- Exploring logs through kubectl
- Choosing a centralized logging solution
- Exploring logs collection and shipping
- Exploring centralized logging through Papertrail
- Combining GCP Stackdriver with a GKE cluster
- Combining AWS CloudWatch with an EKS cluster
- Combining Azure Log Analytics with an AKS cluster
- Exploring centralized logging through Elasticsearch, Fluentd, and Kibana
- Switching to Elasticsearch for storing metrics
- What should we expect from centralized logging?
- What now?
- What Did We Do?
- Other Books You May Enjoy
Product information
- Title: The DevOps 2.5 Toolkit
- Author(s):
- Release date: November 2019
- Publisher(s): Packt Publishing
- ISBN: 9781838647513
You might also like
book
The DevOps 2.4 Toolkit
An exploration of continuous deployment to a Kubernetes cluster, using a wide range of Kubernetes platforms …
book
The DevOps 2.3 Toolkit
About This Book Learn from an expert on how to use Kubernetes, the most adopted container …
book
The DevOps 2.2 Toolkit
Learn from an expert on how use self-adapting and self-healing systems within Docker. About This Book …
book
Security with Go
The first stop for your security needs when using Go, covering host, network, and cloud security …