The Kubernetes Book
- Length: 228 pages
- Edition: 1
- Language: English
- Publisher: Packt Publishing
- Publication Date: 2019-06-26
- ISBN-10: 1838984380
- ISBN-13: 9781838984380
- Sales Rank: #13181265 (See Top 100 Books)
Understand the Kubernetes ecosystem and learn techniques to run fault-tolerant, scalable applications
Key Features
- Gain insight into the inner workings of Kubernetes
- Learn how to deploy and manage applications on Kubernetes
- Explore ways to build and secure Kubernetes clusters
Book Description
Kubernetes is the leading orchestrator of cloud-native apps. With knowledge of how to work with Kubernetes, you can easily deploy and manage applications on the cloud or in your on-premises data center. The book begins by introducing you to Kubernetes and showing you how to install it. You’ll learn how to use Kubernetes Services and bring stable and reliable networking to apps that are deployed on Kubernetes. You’ll delve deep into the powerful storage subsystem of Kubernetes and learn how to leverage the variety of external storage backends in your applications. As the book progresses, it shows you how to use features such as DaemonSets, Helm, and RBAC to enhance your Kubernetes applications. You’ll explore the six categories of identifying vulnerabilities and look at a few ways to prevent and mitigate them. You’ll also look at ways to secure the software delivery pipeline by discussing some image-related best practices. The book ends by sharing with you some resources that’ll help take your Kubernetes knowledge to the next level. By the end of the book, you’ll have the confidence and skills to leverage all the features of Kubernetes to develop scalable applications.
Preface About the Book Paperback Audio Book eBook and Kindle Editions Feedback Why Should Anyone Read This Book or Care about Kubernetes? Should I Buy the Book If I've Already Watched Your Video Training Courses? Versions of the Book About the Authors Learning Objectives Audience Approach Dedications Section Chapter 1 Kubernetes Primer Kubernetes Background Where did Kubernetes Come From? Kubernetes and Docker What about Kubernetes versus Docker Swarm? Kubernetes and Borg: Resistance is Futile! Kubernetes — What's in the Name? A Data Center OS Summary Chapter 2 Kubernetes Principles of Operation Kubernetes from 40k Feet Masters and Nodes Masters (Control Plane) Nodes Packaging Apps The Declarative Model and Desired State Pods Summary Chapter 3 Installing Kubernetes Play with Kubernetes Docker Desktop Minikube Installing Minikube on Mac Installing Minikube on Windows 10 Using kubectl to Verify the Minikube Install Google Kubernetes Engine (GKE) Configuring GKE Exploring GKE Installing Kubernetes on AWS with kops Downloading and Installing kubectl Downloading and Installing kops Installing and Configuring the AWS CLI Deleting a Kubernetes Cluster in AWS with kops Installing Kubernetes with kubeadm kubectl Summary Chapter 4 Working with Pods Pod Theory Pods versus Containers Pods: The Canonical Example How Do We Deploy Pods? The Anatomy of a Pod Pods and cgroups Atomic Deployment of Pods Pod Life Cycle Pod Theory Summary Hands-On with Pods Pod Manifest Files Manifest Files: Empathy as Code Deploying Pods from a Manifest File Introspecting Running Pods Summary Chapter 5 Kubernetes Deployments Deployment Theory Self-Healing and Scalability Rolling Updates with Deployments Rollbacks How to Create a Deployment Inspecting Deployments Accessing the Application Performing a Rolling Update How to Perform a Rollback Summary Chapter 6 Kubernetes Services Setting the Scene Theory Labels and Loose Coupling Services and Endpoint Objects Accessing Services from Inside the Cluster Accessing Services from Outside the Cluster Service Discovery Summary of Service Theory Hands-On with Services The Imperative Way The Declarative Way Summary of Deploying Services Real-World Example Summary Chapter 7 Kubernetes Storage The Big Picture Storage Providers The Container Storage Interface (CSI) The Kubernetes Persistent Volume Subsystem Storage Classes and Dynamic Provisioning A StorageClass YAML Multiple StorageClasses Implementing StorageClasses Demo Cleanup Creating a StorageClass Creating a PVC Cleanup Using the Default StorageClass Summary Chapter 8 Other Important Kubernetes Stuff DaemonSets StatefulSets Jobs and CronJobs Autoscaling Horizontal Pod Autoscaler (HPA) Cluster Autoscaler (CA) Role-Based Access Control (RBAC) Helm Summary Chapter 9 Threat Modeling Kubernetes Threat Model Spoofing Securing Communications with the API Server Securing Pod Communications Tampering Tampering with Kubernetes Components Tampering with Applications Running on Kubernetes Repudiation Information Disclosure Protecting Cluster Data Protecting Data in Pods Denial of Service Protecting Cluster Resources against DoS Attacks Protecting the API Server against DoS Attacks Protecting the Cluster Store against DoS Attacks Protecting Application Components against DoS Attacks Elevation of Privilege Protecting the API server Protecting Pods Pod Security Policies Pod Security Policy Example Summary Chapter 10 Real-World Kubernetes Security CI/CD Pipeline Image Repositories Use Approved Base Images Non-Standard Base Images Control Access to Images Moving Images from Non-Production to Production Vulnerability Scanning Configuration as Code Sign Container Images Image Promotion Workflow Infrastructure and Networking Cluster-Level Workload Isolation Node Isolation Runtime Isolation Network Isolation Identity and Access Management (IAM) Managing Remote SSH Access to Cluster Nodes Auditing and Security Monitoring Secure Configuration Container and Pod Life Cycle Events Application Logs Actions Performed by Users Managing Log Data Real-World Example Summary Chapter 11 What Next Practice Makes Perfect More Books Events and Meetups Feedback
Donate to keep this site alive
How to download source code?
1. Go to: https://github.com/PacktPublishing
2. In the Find a repository… box, search the book title: The Kubernetes Book
, sometime you may not get the results, please search the main title.
3. Click the book title in the search results.
3. Click Code to download.
1. Disable the AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.