Master Kubernetes from Scratch
$12.00
Minimum price
$15.00
Suggested price

Master Kubernetes from Scratch

Kubernetes Tutorial PDF for Beginners

About the Book

Why Learn Kubernetes?

Kubernetes is one of the most in-demand skills today because:

  • Companies are moving to the cloud, and Kubernetes is the leading platform for container orchestration.
  • It supports scaling, self-healing, and high availability.
  • It’s key to understanding DevOps, container orchestration, and infrastructure automation.
  • It helps you stand out in the job market—Kubernetes engineers are in high demand.
  • Kubernetes works with all major cloud providers (AWS, GCP, Azure), so you're not tied to one platform.

What’s Inside This Book?

This is a practical, hands-on guide to learning Kubernetes from scratch. You’ll get clear explanations, architecture diagrams, and working YAML examples.

You’ll cover all the essential resources:

✅ Clusters, Nodes, and kubectl basics

✅ Pods, Init containers, Sidecar containers, and Pod networking

Deployments, scaling, rollbacks, and self-healing setups

Services, Ingress, and Service types like NodePort and LoadBalancer

✅ Namespaces, Volumes, and PersistentVolumeClaims (PVCs)

Jobs, CronJobs, Probes, Labels, Annotations

✅ ConfigMaps, Secrets, and Security Context

✅ Kubernetes RBAC, authentication, and authorization modes

✅ Hands-on labs using Kind, Docker, and YAML configs

Each chapter includes commands, workflows, and troubleshooting tips you can apply right away.

Who Should Read This Book?

This book is designed for beginners and anyone who wants to learn Kubernetes:

  • Developers who want to deploy and manage applications with Kubernetes.
  • IT professionals transitioning to DevOps and cloud technologies.
  • Engineers looking to automate infrastructure.
  • Anyone curious about container orchestration and cloud-native tools.

Why This Book?

It can be frustrating to jump between random tutorials and still feel lost. That’s why I created this book — to give you structured lessons that help you start working with Kubernetes right away.

The theory is reduced to only what matters. You'll get hands-on examples, clear explanations, and diagrams to help you understand and remember each step. We’ll start with the basics, like managing Pods, and gradually move to advanced concepts like security.

  • Share this book

  • Categories

    • Computers and Programming
    • Cloud Computing
    • DevOps
    • Docker
    • Go
  • Feedback

    Email the Author(s)

About the Author

Kirshi Yin | Curious Devs Corner
Kirshi Yin | Curious Devs Corner

I’m a backend developer with 8+ years of experience in Java, Spring Boot, Linux, and DevOps. I’ve published over 100 technical blog posts on medium.com. I spend my time learning modern technologies and turning that knowledge into clear, practical guides. I dedicate a lot of my time to learning and exploring new technologies. I love to spread knowledge about what I've learned. My goal is to help busy people improve their skills through focused, hands-on learning.

If you enjoy learning about modern technologies, check out my Medium/Substack publication called Curious Devs Corner which I created for curious developers like you.

Bundles that include this book

$34.00
Bought separately
$19.00
Minimum price
$21.00
Suggested price

Table of Contents

    1. Introduction to the Book
      1. Why Learn Kubernetes?
      2. What Does a Kubernetes Engineer Do?
      3. What Will You Learn from This Book?
      4. Who Should Read This Book?
      5. Prerequisites
        1. Docker
        2. Kind
        3. kubectl
    2. The Purpose of Kubernetes
      1. Interesting Facts
      2. Containerized Applications
      3. Kubernetes Key Features
      4. Conclusion
    3. Kubernetes Clusters
      1. Key Components of a Kubernetes Cluster
      2. Kubernetes Cluster Types
      3. Kubelets
      4. The Kubeconfig File
      5. Hands-on: Creating a Kubernetes Cluster with Kind
      6. Commands for Managing Clusters
      7. Conclusion
    4. Declarative vs. Imperative Resource Management
      1. Declarative Approach (Using YAML Files)
      2. Imperative Approach (Using Commands)
      3. Conclusion
    5. Kubernetes Pods
      1. Pod Lifecycle
      2. Pod Immutability
      3. Static Pods vs. Controllers
      4. Pod Networking
      5. Multi-Container Pods
      6. Init Containers
      7. Sidecar Containers
      8. Temporary Pods
      9. Restart Policies
      10. Entrypoint and CMD
      11. Key Differences from Docker
      12. Commands for Managing Pods
      13. Conclusion
    6. Kubernetes Namespaces
      1. Key Features of Namespaces
      2. Commands for Managing Namespaces
      3. Conclusion
    7. Kubernetes Deployments
      1. Key Features of Deployments
      2. How Deployments Work
      3. Updating Deployments
      4. Scaling Deployments
      5. Rollbacks
      6. Commands for Managing Deployments
      7. Conclusion
    8. Kubernetes Services
      1. How Services Work
      2. How Labels and Selectors Work
      3. Service Types
        1. ClusterIP
        2. NodePort
        3. LoadBalancer
      4. Key Features of Services
      5. Commands for Managing Services
      6. Hands-on Exercises
      7. Conclusion
    9. Kubernetes Ingress
      1. How Ingress Works
      2. Common Use Cases
      3. Best Practices for Using Ingresses
      4. Hands-on: Set Up Ingress in Kind
      5. Conclusion
    10. Kubernetes Volumes
      1. Key Features of Volumes
      2. Volume Types
      3. Persistent Volume Concepts
      4. Access Modes
      5. Provisioning Volumes
      6. Commands for Managing Volumes
      7. Hands-on Example: PVC and Pod Lifecycle
      8. Conclusion
    11. Kubernetes StatefulSets
      1. How StatefulSets Differ from Deployments
      2. StatefulSet Key Features
      3. Rolling Updates and Pod Order
      4. Commands for Managing StatefulSets
      5. Hands-on Example: StatefulSet with Persistent Storage
      6. Conclusion
    12. Kubernetes Secrets and ConfigMaps
      1. ConfigMaps
      2. Secrets
      3. Injecting ConfigMaps and Secrets into Pods
      4. Hands-On Examples
      5. Best Practices
      6. Conclusion
    13. Kubernetes Labels and Annotations
      1. Labels
      2. Label Selectors
      3. Annotations
      4. Conclusion
    14. Kubernetes Jobs and CronJobs
      1. Jobs Overview
      2. CronJobs Overview
      3. Hands-on: Creating Jobs and CronJobs
      4. Conclusion
    15. Kubernetes Container Probes
      1. Probe Types
      2. Probe Mechanisms
      3. Best Practices
      4. Hands-on: Spring Boot Example
      5. Conclusion
    16. Kubernetes Security Context
      1. Pod vs. Container Level
      2. Best Practices
      3. Common Pitfalls
      4. Combining with Other Mechanisms
      5. Hands-On Exercise
      6. Conclusion
    17. Kubernetes Authentication and Authorization
      1. Authentication
      2. Authorization
      3. Hands-On: Custom Service Account
      4. Conclusion
    18. Final Thoughts and Next Steps
      1. Acknowledgment
      2. Key Takeaways
      3. What’s Next?
      4. Feedback

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $14 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub