Book Description
"Kubernetes for Python Developers" is the essential guide for developers new to Kubernetes, focusing on a step-by-step approach from application creation to deployment. Written with beginners in mind, it demystifies Kubernetes through a developer's lens, ensuring concepts are accessible and practical. The book includes 30+ exercises with solutions and numerous examples to solidify understanding. Whether you're looking to grasp container orchestration or deploy your Python applications with confidence, this book provides the knowledge and tools needed to navigate the Kubernetes ecosystem effectively. Contents 1. The meta stuff The audience of the book Why developers should learn Kubernetes What we will build What prerequisites you need 2. Containers recap Intro to containers How containers work Container networking Isolating processes Docker compose Docker registry Other container engines 3. Kubernetes 101 Why Kubernetes? How Kubernetes works Components of a Kubernetes cluster Setting up your first cluster 4. Pods 101 Kubectl, kubeconfig How to interact with your cluster Pods, events working with pods 5. Pods 201 Getting inside a pod Pod probes Namespaces Pod networking Deploying your first application 6. Beyond pods Replicasets Deployments Services Full fledged Flask app with Redis 7. Going a notch further Config maps Secrets Init containers Storing persistent data 8. A more robust setup Stateful sets Service accounts and RBAC Ingress annotations 9. Closing thoughts Setting up a CD pipeline in Github Github actions Where to go from here Appendix A: Troubleshooting common scenarios Pod not coming up Correct labels Exposing ports Resource constraints Unauthorized Appendix B: Solutions to exercises Is this the right book for you? This book aims to bridge the gap between Python development and Kubernetes operations, making it an ideal read for anyone in the software development lifecycle seeking to adopt Kubernetes for Python applications. This includes python developers, beginners to Kubernetes, students and educators. Whom is this book NOT for? If you already know Kubernetes and are using it in some capacity, then you might not find any value in this book. Also, if you don't have much of a technical background(don't know how to work with Python, no idea about containers), then this book won't be a good fit for you. About me I'm a full stack developer with more than 2 decades of experience working with enterprise customers. I've been dabbling with Kubernetes since 2018, when there were comparitively lesser resources to tame the Kubernetes beast. I always wanted to read a book to bridge the knowledge gap for a developer who knows a bit of ops and wants to dip their toes in the Kubernetes waters and figured I'll write one for those who are on the same boat. Is the book ideal only for Python developers? IThe book has been written using a Python Flask application as an example. It is quite easy to fit in your Node.js/Java/PHP/Rails/Golang/Rust stack if you understand the concepts explained in the book.