Kubernetes – An Enterprise Guide: Effectively containerize applications, integrate enterprise systems, and scale applications in your enterprise
, Second Edition
Extensively revised edition to cover the latest updates and new releases along with two new chapters to introduce Istio
Get a firm command of Kubernetes from a dual perspective of an admin as well as a developer
Understand advanced topics including load balancing, externalDNS, global load balancing, authentication integration, policy, security, auditing, backup, Istio and CI/CD
Description
Kubernetes has taken the world by storm, becoming the standard infrastructure for DevOps teams to develop, test, and run applications. With significant updates in each chapter, this revised edition will help you acquire the knowledge and tools required to integrate Kubernetes clusters in an enterprise environment.
The book introduces you to Docker and Kubernetes fundamentals, including a review of basic Kubernetes objects. You’ll get to grips with containerization and understand its core functionalities such as creating ephemeral multinode clusters using KinD. The book has replaced PodSecurityPolicies (PSP) with OPA/Gatekeeper for PSP-like enforcement. You’ll integrate your container into a cloud platform and tools including MetalLB, externalDNS, OpenID connect (OIDC), Open Policy Agent (OPA), Falco, and Velero. After learning to deploy your core cluster, you’ll learn how to deploy Istio and how to deploy both monolithic applications and microservices into your service mesh. Finally, you will discover how to deploy an entire GitOps platform to Kubernetes using continuous integration and continuous delivery (CI/CD).
Who is this book for?
This book is for anyone interested in DevOps, containerization, and going beyond basic Kubernetes cluster deployments. DevOps engineers, developers, and system administrators looking to enhance their IT career paths will also find this book helpful.
Although some prior experience with Docker and Kubernetes is recommended, this book includes a Kubernetes bootcamp that provides a description of Kubernetes objects to help you if you are new to the topic or need a refresher.
What you will learn
Create a multinode Kubernetes cluster using KinD
Implement Ingress, MetalLB, ExternalDNS, and the new sandbox project, K8GBConfigure a cluster OIDC and impersonation
Deploy a monolithic application in Istio service mesh
Map enterprise authorization to Kubernetes
Secure clusters using OPA and GateKeeper
Enhance auditing using Falco and ECK
Back up your workload for disaster recovery and cluster migration
Deploy to a GitOps platform using Tekton, GitLab, and ArgoCD
Kubernetes – An Enterprise Guide, Second Edition: Effectively containerize applications, integrate enterprise systems, and scale applications in your enterprise
Thanks to the authors. This comprehensive book on Kubernetes came at the right time.This book starts with the basics and continues to build and build and build. I appreciate the pacing as there is a lot of information covered, and the authors did a great job of not skimming over content. For example, Kubernetes resources are covered thoroughly. I have experienced some books that tend to end up providing nothing more than a list or a repeat of the help content.I would recommend this to those wanting to start using K8s and those with a moderate amount of experience. The scope is huge but all major aspects of hosting a K8s solution are covered from basic operation to networking and security to more complex scenarios using a service mesh. I also found this guide helpful for a PaaS Kubernetes offering (Azure Kubernetes Service).
Amazon Verified review
Aman GuptaMay 10, 2022
5
The chronology of chapters in this book has been set strategically to increase the complexity as I proceed. The best thing I liked about the book is no alien term is left unexplained. You don't need to google or refer any external material to understand the concepts described in this book.
Amazon Verified review
Sanket AgrawalMay 10, 2022
5
What I found interesting about this book is that it isn't monotonous. In fact, it presents two different angles of perspective on the functioning of Kubernetes and I found that they at times complement each other. The book is detailed in optimum amount - not going too deep into the basics but at the same time ensuring it doesn't leave any important aspect unexplained.
Amazon Verified review
GoLeafsGoFeb 06, 2022
5
Ok, for starters, if you want to know why you should read this book, take a look at the author's LinkedIn profiles. Both of them have years of experience in multiple portions of Information Technology and they have been working with Kubernetes, almost from the beginning.With that said, their experience and presentations doesn't mean that they can write books, right? Well, I am happy to say that they can write, and I think they write and explain everything very well. The format of this book is great for most learners. They tend to explain a topic which then blends into an exercise to help you learn the topic. I personally love this versus reading 40+ pages of theory and, maybe, get an exercise at the end of the chapter. Their GIT repository scripts are something I find myself using a few times a week to create test environments, which are well worth the price of the book by themselves.Does the book have any negatives? Very few, but there are some. For some reason the review questions in some chapters don't see to have answers, but I assume they will release an update in their GIT that will include the answers. Either way, it's not the end of the world.I wanted to call out some chapters and topics that I found very interesting and informative. I really like the use of kind for the clusters. I know others like Minikube, or even Docker desktop, but those are both have limits, and they have options to install add-ons like the K8s dashboard, where you don't learn how to do it at all. Using kind makes sense to me, it's small and you can run it on any machine that has Docker or another container runtime, including WSL2, Linux, Windows, or Mac.I really like the bootcamp chapter as a refresher, I learned about a few resources that I rarely use, or even heard of. The services chapter is a mammoth chapter, and not just the printed chapter, they continue a complex deployment using kubeadm to demonstrate the OSS project called K8GB. This was one of my favorite topics in the book and we plan to implement it at work based on my team testing it using the scripts from the authors.So many people have no idea how to secure a cluster with identity management. A lot of people use certificates for users and as the book points out, this is a nightmare and contrary to common beliefs, not a secure model. Instead, they explain OIDC in K8s in a way that anyone can learn it and to top it off, they include script to deploy OIDC with a container that appears to be a form of an Active Directory. It's not covered in the book, but I found out that you can add users by editing a config map in the namespace where the pod is running.I also loved the Istio chapters. Sure, they won't make you a service mesh expert, but that's not possible in just 2 chapters. The chapters provide enough information to make installing and working with Istio resources a lot less scary than it would be without the chapters.Finally, chapter 14 is another huge chapter that cover what could be an entire book by itself. I still like the chapter since it gets into CI/CD and uses a number of OSS tools to introduce you to pipelines. This has been an area I have been meaning to dive into more and reading this book, and chapter, was a great jumpstart to that.It's a big book, clocking in at over 500 pages, while so many other K8s books barely break 350+ pages. Something tells me they could have created a book that was triple what it is! K8s is a big and complex topic, and the chapters contain the perfect number of details to get the reader excited and comfortable on each of them.Do yourself a favor, stop searching for topics on Google that can lead you to blog that might just confuse you more than necessary, or posting questions in forums just to have someone make a sarcastic remark about your question. I have had my team read this book, and every topic can transfer to a large cluster, even though they use kind for the examples. Even the scripts work on a real-world cluster!
Amazon Verified review
HK-supergeekJan 07, 2022
5
I was a fan of the first edition of this book and when the second edition was announced so quickly, I was skeptical. Since the first edition was a unique book with the merging of theory with labs intertwined, I took the plunge and pre-ordered the second edition.The first chapter is just the base Docker, which I think is needed since the book exercises use KinD, but I'm glad they removed the other two Docker chapters from the first edition. From there the book has been updated for a new KinD version and the K8s bootcamp has some good updates. Chapter 4 and beyond is where it gets interesting. I loved the updates to the services chapter, it includes new scripts and a section on global load balancing using K8GB. The K8GB section even includes scripts and docs in book repo to step you through using kubeadm and a Windows DNS server that allows you to simulate two regions and fail a DNS record between the clusters for high availability. The updates to the Identity Management sections are excellent as well, including new scripts to deploy the OIDC provider. In this update they have included a container that acts as the backend Active Directory for the OIDC server. With one script you will have an OIDC server with a local directory that you can use for advanced features and to learn about JSON web tokens.Other chapters have great updates as well. My favorite update is the Falco chapter which covers all new features of Falco and even uses Falcosidekick to trigger a function that is created using Kubeless to create a network policy to stop a pod from communicating on the network!It's not all about just the updates in the second edition. The updates are great but they also added chapters, including one on Istio that covers installing Istio and using Kiali to observe the mesh, and the second chapter expands on the basics by authentication services and users using the tokens from the OIDC server. The scripts shine here too. Using two or three scripts you can create a new KinD cluster that includes Istio, OIDC and Kiali with token integration!!!I know this is a long review, but I really wanted to leave one since I have enjoyed the second edition even more than the original, first edition. These guys obviously don't just know what Kubernetes is, they know how it should be deployed and secured for any enterprise. This is a must have reference for anybody interested in Kubernetes and how it should run in the real-world.
Marc Boorshtein has been a software engineer and consultant for 20 years and is currently the CTO (Chief Technology Officer) of Tremolo Security, Inc. Marc has spent most of his career building identity management solutions for large enterprises, U.S. Government civilian agencies, and local government public safety systems.
Scott Surovich has been involved in the industry for over 25 years and is currently the Global Container Engineering Lead at a tier 1 bank as the Global on-premises Kubernetes product owner architecting and, delivering cluster standards, including the surrounding ecosystem. His previous roles include working on other global engineering teams, including Windows, Linux, and virtualization.
A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content
How can I cancel my subscription?
To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.
What are credits?
Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.
What happens if an Early Access Course is cancelled?
Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.
Where can I send feedback about an Early Access title?
If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team.
Can I download the code files for Early Access titles?
We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.
When we publish the book, the code files will also be available to download from the Packt website.
How accurate is the publication date?
The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.
How will I know when new chapters are ready?
We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.
I am a Packt subscriber, do I get Early Access?
Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.
How is Early Access delivered?
Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.
How do I buy Early Access content?
Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.
What is Early Access?
Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.