Leanpub Header

Skip to main content

Kubernetes for All + Distributed Systems in Go

Run it and build it: Kubernetes for All together with Distributed Systems in Go.

Bought separately

$58.00

Minimum price

$29.00

$45.00

You pay

Author earns

$

Also available for 2 book credits with a Reader Membership

The following 2 books are included in this bundle...

These books have a total suggested price of $58.00. Get them now for only $29.00!
About

About

About the Bundle

Run it and build it: Kubernetes for All together with Distributed Systems in Go.

Books

About the Books

Kubernetes for All

Kubernetes for All

Build a Datacenter from Scratch

Developer experience is infrastructure. The difference between a team that ships every day and a team that dreads deployments is rarely talent. More often, it is tooling. Fast feedback loops. Immutable deployments. Self-healing clusters. Observable systems. These are not luxuries reserved for large organizations—they are the foundation of reliable software delivery.

Most Kubernetes tutorials stop at kubectl apply. By now, you probably know the commands. What is often missing is the system that ties them together: a repeatable workflow that provisions a cluster in seconds, rebuilds images with the cache you expect, reloads services without dropping connections, and tells you exactly what went wrong when something fails.

This book is about building that system.

Kubernetes for All teaches Kubernetes from the ground up by having you build a complete cloud-native platform yourself. Instead of deploying to a managed cluster and accepting the magic, you'll create your own datacenter from scratch using a single Bash script that provisions a full multi-node Kubernetes environment.

Along the way, you'll discover not just how Kubernetes works, but why it works the way it does. You'll build the cluster, deploy applications, automate operations, implement GitOps workflows, add observability with Prometheus and Grafana, and follow requests through distributed systems with OpenTelemetry. Every layer is introduced by building it yourself.

No prior Kubernetes experience is required.

You'll work with Kind, Helm, Pods, Deployments, Services, Ingress, ConfigMaps, Secrets, Persistent Volumes, StatefulSets, and the Kubernetes API. Every command is explained. Every concept is demonstrated. By the end, you'll have a production-style environment running real microservices—and the understanding needed to operate it with confidence.

This is a book about cloud-native engineering in practice.

Not slides. Not architecture diagrams disconnected from reality. Not vendor marketing.

Bash. Docker. Helm. Kind.

Real tools solving real problems, guided by five principles that appear throughout the book:

  • Infrastructure as Code
  • Immutable Deployments
  • Fast Feedback
  • Fail Loudly and Self-Heal
  • Observability

What You Will Build

At the heart of the book is datacenter.sh, a single script that provisions and operates an entire Kubernetes environment.

By the time you're finished, that script will deploy 16 microservices, PostgreSQL, Kafka running in KRaft mode, and a web frontend. Whether the target is a local Kind cluster or a bare-metal datacenter, the deployment path remains the same. The infrastructure changes. The workflow does not.

You write every line.

You understand every decision.

You own the result.

Who This Book Is For

This book is for engineers who want Kubernetes tooling they can understand, modify, and trust.

You deploy applications. You write scripts. You value systems that are version-controlled, observable, reproducible, and fast.

You want your inner development loop—change code, build, deploy, verify—to take seconds instead of minutes.

Most of all, you want to understand what is happening beneath the abstractions.

No certification is required.

Just Docker, Kind, a terminal, and the desire to build something real.

Take the Course

Want to go further? The companion course turns this book into a guided learning path with chapter quizzes, a final exam and a certificate of completion: Kubernetes for All: The Course

Distributed Systems in Go

Distributed Systems in Go

A Complete Guide to Building Cloud-Native Distributed Go Systems

Every Go developer eventually faces the same moment: a single binary isn't enough anymore. You need multiple services. They need to authenticate, persist data, communicate, and stay running when things break. You've read the CAP theorem. You understand the fallacies of distributed computing. But at 2am, when your Kafka consumer is accumulating lag and your context deadlines are firing, theory doesn't help.

Distributed Systems in Go closes that gap. Built on the author's experience operating cloud-native distributed systems in production, it builds a complete system piece by piece — authentication, databases, message queues, gRPC, circuit breakers, distributed tracing. Every chapter teaches a pattern, then extracts it into a reusable platform SDK. By Chapter 15, you have a deployable six-service system and an SDK that makes the next service easier to build than the last.

What you'll build:

  • HTTP services with composable middleware (no framework required)
  • JWT authentication with ECDSA signing and pluggable auth agents
  • PostgreSQL access with zero-downtime migrations and the outbox pattern
  • Kafka producers and consumers with backpressure and dead-letter queues
  • gRPC service-to-service calls with retries, timeouts, and circuit breakers
  • Distributed consistency with sagas, idempotency keys, and reconciliation
  • Observability: structured logging (slog), Prometheus metrics, OpenTelemetry tracing
  • Tests against real infrastructure with testcontainers and chaos patterns
  • Kubernetes deployment manifests for all six services

Every code example is complete and self-contained.

This is the book for the Go developer who can build a service but hasn't yet built a system. If you've copy-pasted middleware you don't fully understand, or stared at a "context deadline exceeded" error across five services with no idea where the deadline came from, this book is for you.

Take the Course

Want to go further? The companion course turns this book into a guided learning path with chapter quizzes, a final exam and a certificate of completion: Distributed Systems in Go: The Course

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.

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.)

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