Lightweight Kubernetes setup guide.

What is K3s?

K3s is a lightweight Kubernetes distribution perfect for edge computing, IoT, CI/CD, and homelab environments.

Installation

Single Node

curl -sfL https://get.k3s.io | sh -

Multi-Node Cluster

On the master node:

curl -sfL https://get.k3s.io | sh -s - server --cluster-init

Get the token:

sudo cat /var/lib/rancher/k3s/server/node-token

On worker nodes:

curl -sfL https://get.k3s.io | K3S_URL=https://master-ip:6443 K3S_TOKEN=<token> sh -

Verify Installation

sudo k3s kubectl get nodes

Next Steps

  • Deploy applications
  • Configure ingress
  • Set up monitoring