Leanpub Header

Skip to main content

AI Appliances + Kubernetes for All

Build AI appliances with kdeps and run them on Kubernetes.

Bought separately

$38.99

Minimum price

$24.00

$35.00

You pay

Author earns

$

Also available for 1 book credit with a Reader Membership

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

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

About

About the Bundle

Build AI appliances with kdeps and run them on Kubernetes.

Books

About the Books

AI Appliances

AI Appliances

Build & Deploy Autonomous AI Agents and Agencies in YAML

Most AI tooling is built for the demo, not the shift. You get a working prototype, someone wants to put it in production, and suddenly you're asking: how do I validate inputs? How do I retry a flaky API? How do I deploy this without rewriting it? How do I switch models without touching every file?

AI Appliances answers all of those questions with a single framework: kdeps.

kdeps lets you define AI agents as YAML workflows — deterministic pipelines of resources (LLM calls, SQL queries, HTTP requests, Python scripts, browser automation) connected in a dependency graph. You declare what each step does and what it depends on. kdeps handles execution, validation, retries, error handling, and deployment.

This book is the complete guide to building with kdeps, from a first working agent to a multi-agent system running in production on Kubernetes.

You will learn how to:

  • Build deterministic AI pipelines using a directed acyclic graph (DAG) of typed resources
  • Wire LLM calls, SQL queries, HTTP clients, Python scripts, web scrapers, and browser automation into a single workflow
  • Validate inputs, handle errors gracefully, and make agents resilient to real-world conditions
  • Compose reusable components and build multi-agent agencies where specialized agents collaborate autonomously
  • Deploy to Docker, Kubernetes, standalone binaries, or edge devices — from the same YAML, without changing a line
  • Run local open-source LLMs via Ollama, or route to OpenAI, Anthropic, Gemini, Perplexity, or any compatible provider
  • Debug with kdeps validate, kdeps doctor, hot-reload development mode, and trace logging
  • Build native chat bots for Telegram, Discord, Slack, and WhatsApp — or process files from the command line — with the same resource DAG, just a different input source

What this book is not: a machine learning theory text, a prompt engineering tutorial, or a guide to any proprietary AI platform. It is a book about running AI in production as reliably as you run a database.

What you need: familiarity with YAML and basic command-line comfort. No prior AI/ML experience required.

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: AI Appliances: The Course

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

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