Mastering Kubernetes

Master the art of container management utilizing the power of Kubernetes

Mastering Kubernetes

This ebook is included in a Mapt subscription
Gigi Sayfan

Master the art of container management utilizing the power of Kubernetes
$0.00
$39.99
$49.99
$29.99p/m after trial
RRP $39.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Code Files
Preview in Mapt

Book Details

ISBN 139781786461001
Paperback426 pages

Book Description

Kubernetes is an open source system to automate the deployment, scaling, and management of containerized applications. If you are running more than just a few containers or want automated management of your containers, you need Kubernetes.

This book mainly focuses on the advanced management of Kubernetes clusters. It covers problems that arise when you start using container orchestration in production. We start by giving you an overview of the guiding principles in Kubernetes design and show you the best practises in the fields of security, high availability, and cluster federation.

You will discover how to run complex stateful microservices on Kubernetes including advanced features as horizontal pod autoscaling, rolling updates, resource quotas, and persistent storage back ends. Using real-world use cases, we explain the options for network configuration and provides guidelines on how to set up, operate, and troubleshoot various Kubernetes networking plugins. Finally, we cover custom resource development and utilization in automation and maintenance workflows.

By the end of this book, you’ll know everything you need to know to go from intermediate to advanced level.

Table of Contents

Chapter 1: Understanding Kubernetes Architecture
Understanding container orchestration
Kubernetes concepts
Diving into Kubernetes architecture in depth
The Kubernetes APIs
Kubernetes components
Kubernetes runtimes
Continuous integration and deployment
Summary
Chapter 2: Creating Kubernetes Clusters
Quick single-node cluster with Minikube
Creating a multi-node cluster using kubeadm
Creating clusters in the cloud (GCP, AWS, Azure)
Creating a bare-metal cluster from scratch
The process
Using virtual private cloud infrastructure
Summary
Chapter 3: Monitoring, Logging, and Troubleshooting
Monitoring Kubernetes with Heapster
InfluxDB backend
Performance analysis with the dashboard
Detecting node problems
Troubleshooting scenarios
Designing robust systems
Summary
Chapter 4: High Availability and Reliability
High-availability concepts
High-availability best practices
Live cluster upgrades
Large-cluster performance, cost, and design trade-offs
Summary
Chapter 5: Configuring Kubernetes Security, Limits, and Accounts
Understanding Kubernetes security challenges
Hardening Kubernetes
Running a multi-user cluster
Summary
Chapter 6: Using Critical Kubernetes Resources
Designing the Hue platform
Using Kubernetes to build the Hue platform
Separating internal and external services
Using namespace to limit access
Launching jobs
Kubectl get pods
Mixing non-cluster components
Employing init containers for orderly pod bring-up
Evolving the Hue platform with Kubernetes
Summary
Chapter 7: Handling Kubernetes Storage
Persistent volumes walkthrough
Public storage volume types - GCE, AWS, and Azure
GlusterFS and Ceph volumes in Kubernetes
Flocker as a clustered container data volume manager
Integrating enterprise storage into Kubernetes
Summary
Chapter 8: Running Stateful Applications with Kubernetes
Stateful versus stateless applications in Kubernetes
Shared environment variables versus DNS records for discovery
Running a Cassandra cluster in Kubernetes
Summary
Chapter 9: Rolling Updates, Scalability, and Quotas
Horizontal pod autoscaling
Performing rolling updates with autoscaling
Handling scarce resources with limits and quotas
Choosing and managing the cluster capacity
Pushing the envelope with Kubernetes
Summary
Chapter 10: Advanced Kubernetes Networking
Understanding the Kubernetes networking model
Kubernetes networking solutions
Using network policies effectively
Load balancing options
Writing your own CNI plugin
Summary
Chapter 11: Running Kubernetes on Multiple Clouds and Cluster Federation
Understanding cluster federation
Managing a Kubernetes cluster federation
Setting up cluster federation from the ground up
Running federated workloads
Summary
Chapter 12: Customizing Kubernetes - API and Plugins
Working with the Kubernetes API
Extending the Kubernetes API
Writing Kubernetes plugins
Writing an authorization plugin
Summary
Chapter 13: Handling the Kubernetes Package Manager
Understanding Helm
Using Helm
Creating your own charts
Summary
Chapter 14: The Future of Kubernetes
The road ahead
Competition
The Kubernetes momentum
Education and training
Dynamic plugins
Summary

What You Will Learn

  • Architect a robust Kubernetes cluster for long-time operation
  • Discover the advantages of running Kubernetes on GCE, AWS, Azure, and bare metal
  • See the identity model of Kubernetes and options for cluster federation
  • Monitor and troubleshoot Kubernetes clusters and run a highly available Kubernetes
  • Create and configure custom Kubernetes resources and use third-party resources in your automation workflows
  • Discover the art of running complex stateful applications in your container environment
  • Deliver applications as standard packages

Authors

Table of Contents

Chapter 1: Understanding Kubernetes Architecture
Understanding container orchestration
Kubernetes concepts
Diving into Kubernetes architecture in depth
The Kubernetes APIs
Kubernetes components
Kubernetes runtimes
Continuous integration and deployment
Summary
Chapter 2: Creating Kubernetes Clusters
Quick single-node cluster with Minikube
Creating a multi-node cluster using kubeadm
Creating clusters in the cloud (GCP, AWS, Azure)
Creating a bare-metal cluster from scratch
The process
Using virtual private cloud infrastructure
Summary
Chapter 3: Monitoring, Logging, and Troubleshooting
Monitoring Kubernetes with Heapster
InfluxDB backend
Performance analysis with the dashboard
Detecting node problems
Troubleshooting scenarios
Designing robust systems
Summary
Chapter 4: High Availability and Reliability
High-availability concepts
High-availability best practices
Live cluster upgrades
Large-cluster performance, cost, and design trade-offs
Summary
Chapter 5: Configuring Kubernetes Security, Limits, and Accounts
Understanding Kubernetes security challenges
Hardening Kubernetes
Running a multi-user cluster
Summary
Chapter 6: Using Critical Kubernetes Resources
Designing the Hue platform
Using Kubernetes to build the Hue platform
Separating internal and external services
Using namespace to limit access
Launching jobs
Kubectl get pods
Mixing non-cluster components
Employing init containers for orderly pod bring-up
Evolving the Hue platform with Kubernetes
Summary
Chapter 7: Handling Kubernetes Storage
Persistent volumes walkthrough
Public storage volume types - GCE, AWS, and Azure
GlusterFS and Ceph volumes in Kubernetes
Flocker as a clustered container data volume manager
Integrating enterprise storage into Kubernetes
Summary
Chapter 8: Running Stateful Applications with Kubernetes
Stateful versus stateless applications in Kubernetes
Shared environment variables versus DNS records for discovery
Running a Cassandra cluster in Kubernetes
Summary
Chapter 9: Rolling Updates, Scalability, and Quotas
Horizontal pod autoscaling
Performing rolling updates with autoscaling
Handling scarce resources with limits and quotas
Choosing and managing the cluster capacity
Pushing the envelope with Kubernetes
Summary
Chapter 10: Advanced Kubernetes Networking
Understanding the Kubernetes networking model
Kubernetes networking solutions
Using network policies effectively
Load balancing options
Writing your own CNI plugin
Summary
Chapter 11: Running Kubernetes on Multiple Clouds and Cluster Federation
Understanding cluster federation
Managing a Kubernetes cluster federation
Setting up cluster federation from the ground up
Running federated workloads
Summary
Chapter 12: Customizing Kubernetes - API and Plugins
Working with the Kubernetes API
Extending the Kubernetes API
Writing Kubernetes plugins
Writing an authorization plugin
Summary
Chapter 13: Handling the Kubernetes Package Manager
Understanding Helm
Using Helm
Creating your own charts
Summary
Chapter 14: The Future of Kubernetes
The road ahead
Competition
The Kubernetes momentum
Education and training
Dynamic plugins
Summary

Book Details

ISBN 139781786461001
Paperback426 pages
Read More

Read More Reviews