K3s: Lightweight Kubernetes for the Edge

Shriira Press

Preface

Kubernetes shrunk to a single binary you can run on a Raspberry Pi, a CI runner, or ten thousand edge devices.

Welcome to K3s: Lightweight Kubernetes for the Edge.

K3s is a fully certified Kubernetes distribution packaged as one binary under seventy megabytes, built by Rancher (now part of SUSE) and donated to the Cloud Native Computing Foundation. It solves a real problem: standard Kubernetes is heavy, demanding gigabytes of memory, a separate etcd cluster, and a sprawl of moving parts that make little sense on a factory-floor gateway, an ARM board, a retail store, or an ephemeral CI job. K3s keeps the full Kubernetes API while stripping the weight — it swaps etcd for an embedded SQLite database through a shim called kine, bundles containerd, Flannel, CoreDNS, Traefik, and a service load balancer inside the binary, and installs with a single curl command. This book walks you through what K3s is and why it exists, how its server and agent nodes are arranged, the datastore options from SQLite to embedded etcd, the batteries-included networking and storage components, how you install and operate a cluster, how high availability works, where it runs in the real world, and how it fits alongside the wider Kubernetes ecosystem. By the end you will understand not just how to start a K3s cluster but why every design choice was made the way it was.

This title is part of the ShriIra library and is free to read in full, right here — our small contribution to making world-class knowledge easy to reach.

A note on reading it: open the Contents menu at the top of the reader to jump between chapters, use the Aa menu to set a comfortable text size, theme (light, sepia, or night), and single- or two-page layout. Your place is saved automatically, so you can always pick up where you left off.

We hope it serves you well.

— Shriira Press

Contents

  1. Chapter 1 — Why K3s Exists
  2. Chapter 2 — The Single Binary
  3. Chapter 3 — Servers and Agents
  4. Chapter 4 — The Datastore and Kine
  5. Chapter 5 — Networking and Ingress
  6. Chapter 6 — Storage and Packaged Components
  7. Chapter 7 — Installing and Operating a Cluster
  8. Chapter 8 — High Availability
  9. Chapter 9 — K3s in Practice
0%
1/1