Book description
In this practical guide, four Kubernetes professionals with deep experience in distributed systems, enterprise application development, and open source will guide you through the process of building applications with this container orchestration system. They distill decades of experience from companies that are successfully running Kubernetes in production and provide concrete code examples to back the methods presented in this book.
Revised to cover all the latest Kubernetes features, new tooling, and deprecations, this book is ideal for those who are familiar with basic Kubernetes concepts but want to get up to speed on the latest best practices. You'll learn exactly what you need to know to build your best app with Kubernetes the first time.
- Set up and develop applications in Kubernetes
- Learn patterns for monitoring, securing your systems, and managing upgrades, rollouts, and rollbacks
- Integrate services and legacy applications and develop higher-level platforms on top of Kubernetes
- Run machine learning workloads in Kubernetes
- Ensure pod and container security
- Understand issues that have become increasingly critical to the successful implementation of Kubernetes, such as chaos engineering/testing, GitOps, service mesh, and observability
Publisher resources
Table of contents
- Preface
-
1. Setting Up a Basic Service
- Application Overview
- Managing Configuration Files
- Creating a Replicated Service Using Deployments
- Setting Up an External Ingress for HTTP Traffic
- Configuring an Application with ConfigMaps
- Managing Authentication with Secrets
- Deploying a Simple Stateful Database
- Creating a TCP Load Balancer by Using Services
- Using Ingress to Route Traffic to a Static File Server
- Parameterizing Your Application by Using Helm
- Deploying Services Best Practices
- Summary
- 2. Developer Workflows
-
3. Monitoring and Logging in Kubernetes
- Metrics Versus Logs
- Monitoring Techniques
- Monitoring Patterns
- Kubernetes Metrics Overview
- What Metrics Do I Monitor?
- Monitoring Tools
- Monitoring Kubernetes Using Prometheus
- Logging Overview
- Tools for Logging
- Logging by Using a Loki-Stack
- Alerting
- Best Practices for Monitoring, Logging, and Alerting
- Summary
- 4. Configuration, Secrets, and RBAC
- 5. Continuous Integration, Testing, and Deployment
- 6. Versioning, Releases, and Rollouts
- 7. Worldwide Application Distribution and Staging
- 8. Resource Management
- 9. Networking, Network Security, and Service Mesh
- 10. Pod and Container Security
- 11. Policy and Governance for Your Cluster
- 12. Managing Multiple Clusters
- 13. Integrating External Services with Kubernetes
- 14. Running Machine Learning in Kubernetes
- 15. Building Higher-Level Application Patterns on Top of Kubernetes
- 16. Managing State and Stateful Applications
- 17. Admission Control and Authorization
- 18. GitOps and Deployment
- 19. Security
- 20. Chaos Testing, Load Testing, and Experiments
- 21. Implementing an Operator
- 22. Conclusion
- Index
- About the Authors
Product information
- Title: Kubernetes Best Practices, 2nd Edition
- Author(s):
- Release date: October 2023
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781098142162
You might also like
book
Kubernetes: Up and Running, 2nd Edition
Kubernetes radically changes the way applications are built and deployed in the cloud. Since its introduction …
book
Kubernetes Patterns, 2nd Edition
This second edition comes with a dedicated playlist of interactive Katacoda labs mapped to sections of …
book
Kubernetes: Up and Running, 3rd Edition
This third edition comes with a dedicated playlist of interactive Katacoda labs mapped to each section …
book
Managing Kubernetes Resources Using Helm - Second Edition
Reduce the complexity of managing applications on Kubernetes and develop an enterprise pattern for application delivery …