Book description
Become familiar with Kubernetes and explore techniques to manage your containerized workloads and services
Key Features
- Learn everything from creating a cluster to monitoring applications in Kubernetes
- Understand and develop DevOps primitives using Kubernetes
- Use Kubernetes to solve challenging real-life DevOps problems
Book Description
Kubernetes and DevOps are the two pillars that can keep your business at the top by ensuring high performance of your IT infrastructure.
Introduction to DevOps with Kubernetes will help you develop the skills you need to improve your DevOps with the power of Kubernetes. The book begins with an overview of Kubernetes primitives and DevOps concepts. You'll understand how Kubernetes can assist you with overcoming a wide range of real-world operation challenges. You will get to grips with creating and upgrading a cluster, and then learn how to deploy, update, and scale an application on Kubernetes. As you advance through the chapters, you'll be able to monitor an application by setting up a pod failure alert on Prometheus. The book will also guide you in configuring Alertmanager to send alerts to the Slack channel and trace down a problem on the application using kubectl commands.
By the end of this book, you'll be able to manage the lifecycle of simple to complex applications on Kubernetes with confidence.
What you will learn
- Create and manage Kubernetes clusters in on-premise systems and cloud
- Exercise various DevOps practices using Kubernetes
- Explore configuration, secret, and storage management, and exercise these on Kubernetes
- Perform different update techniques and apply them on Kubernetes
- Use the built-in scaling feature in Kubernetes to scale your applications up and down
- Use various troubleshooting techniques and have a monitoring system installed on Kubernetes
Who this book is for
If you are a developer who wants to learn how to apply DevOps patterns using Kubernetes, then this book is for you. Familiarity with Kubernetes will be useful, but not essential.
Table of contents
- Preface
- Chapter 1
- Introduction to DevOps
- Chapter 2
- Introduction to Microservices and Containers
- Chapter 3
- Introduction to Kubernetes
- Chapter 4
- Creating a Kubernetes Cluster
- Chapter 5
- Deploy an Application to Kubernetes
- Chapter 6
-
Configuration and Storage Management in Kubernetes
- Configuration Management
- Configuration Management in Kubernetes
- Secret Management
-
Secret Management Best Practices
- Identifying Secrets
- Decoupling Secrets from the Source Code
- Rotating Secrets
- Principle of Least Privilege
- Preventing Printing Out Secrets on Application Logs
- Encryption at Rest
- Secret Management in Kubernetes
- Creating a Secret
- Updating a Secret
- Consuming Secrets from a Pod
- Exercise 17: Create and Update a Secret
- Activity 6: Updating Configurations on the Fly
- Storage Management
- Storage Management in Kubernetes
- Activity 7: Running a Persistent Database on Kubernetes
- Summary
- Chapter 7
-
Updating and Scaling an Application in Kubernetes
- Updating an Application
-
Updating an Application in Kubernetes
- StatefulSet Update Strategies
- OnDelete
- RollingUpdate
- Deployment Update Strategies
- Recreate
- RollingUpdate
- Performing Blue-Green Deployment in Kubernetes
- Performing Rolling Updates in Kubernetes
- maxSurge
- maxUnavailable
- Updating a Deployment Using a Rolling Update
- Updating an Application using Helm
- Exercise 19: Updating a Deployment in Kubernetes Using a Rolling Update
- Scaling an Application
- Horizontal versus Vertical Scaling
- Autoscaling
- Strong versus Eventual Consistency
- Scaling an Application in Kubernetes
- Summary
- Chapter 8
-
Troubleshooting Applications in Kubernetes
- Introduction
- Troubleshooting
-
Troubleshooting Applications in Kubernetes
- Pod Life Cycle
- Pod Status
- Pod Conditions
- Condition Types
- Pod Phase
- Restart Policy
- Container States
- Auto Recovery
- Health checks
- Liveness Probe
- Readiness Probe
- Exercise 21: Using Liveness and Readiness Probes in Kubernetes
- Creating a Termination Log
- Handy Commands for Troubleshooting
- Other Handy Commands
- Action Commands
- Suggestions for Some Common Problems
- Lack of Resources
- Image Pull Failure
- Exercise 22: Fixing a Pod Failure in Kubernetes
- Ask the Community
- Activity 9: Troubleshooting an Application in Kubernetes
- Summary
- Chapter 9
- Monitoring Applications in Kubernetes
-
Appendix
- Chapter 1: Introduction to DevOps
- Chapter 2: Introduction to Microservices and Containers
- Chapter 3: Introduction to Kubernetes
- Chapter 4: Creating a Kubernetes Cluster
- Chapter 5: Deploy an Application to Kubernetes
- Chapter 6: Configuration and Storage Management in Kubernetes
- Chapter 7: Updating and Scaling an Application in Kubernetes
- Chapter 8: Troubleshooting Applications in Kubernetes
- Chapter 9: Monitoring Applications in Kubernetes
Product information
- Title: Introduction to DevOps with Kubernetes
- Author(s):
- Release date: May 2019
- Publisher(s): Packt Publishing
- ISBN: 9781789808285
You might also like
book
DevOps with Kubernetes
Learn to implement DevOps using Docker & Kubernetes. About This Book Learning DevOps, container, and Kubernetes …
book
Cloud Native DevOps with Kubernetes
Kubernetes is the operating system of the cloud native world, providing a reliable and scalable platform …
book
Kubernetes and Docker - An Enterprise Guide
Apply Kubernetes beyond the basics of Kubernetes clusters by implementing IAM using OIDC and Active Directory, …
video
Kubernetes Course from a DevOps guru (Kubernetes + Docker)
Kubernetes is at the cutting-edge of how the greatest apps scale, the most successful businesses ensure …