Please note that we used autoscaling/v2beta1 version of HorizontalPodAutoscaler. At the time of this writing (November 2018), only v1 is stable and production-ready. However, v1 is so limited (it can use only CPU metrics) that it's almost useless. Kubernetes community worked on new (v2) HPA for a while and, in my experience, it works reasonably well. The main problem is not stability but potential changes in the API that might not be backward compatible. A short while ago, autoscaling/v2beta2 was released, and it uses a different API. I did not include it in the book because (at the time of this writing) most Kubernetes clusters do not yet support it. If you're running Kubernetes 1.11+, you might want to switch to v2beta2. If you do so, remember that you'll need to make a few changes to the HPA definitions we explored. The logic is still the same, and...
The DevOps 2.5 Toolkit
By :
The DevOps 2.5 Toolkit
By:
Overview of this book
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.
Table of Contents (9 chapters)
Free Chapter
Autoscaling Deployments and StatefulSets Based on Resource Usage
Auto-scaling Nodes of a Kubernetes Cluster
Collecting and Querying Metrics and Sending Alerts
Debugging Issues Discovered Through Metrics and Alerts
Extending HorizontalPodAutoscaler with Custom Metrics
Visualizing Metrics and Alerts
Collecting and Querying Logs
What Did We Do?
Other Books You May Enjoy
Customer Reviews