k3s
lightweight Kubernetes distribution
TLDR
Start server
$ sudo k3s server
Join as agent$ sudo k3s agent --server [https://server:6443] --token [token]
Get kubeconfig$ sudo k3s kubectl config view
Run kubectl command$ k3s kubectl get pods
Start with disabled components$ sudo k3s server --disable traefik
Check token$ sudo cat /var/lib/rancher/k3s/server/node-token
SYNOPSIS
k3s command [options]
DESCRIPTION
K3s is a lightweight Kubernetes distribution. It runs a full Kubernetes cluster with minimal resources.
The tool packages Kubernetes, containerd, and Flannel in a single binary. It's designed for edge, IoT, and development.
PARAMETERS
server
Start control plane.agent
Start worker node.kubectl
Run kubectl commands.--server URL
Server URL for agent.--token TOKEN
Join token.--disable COMPONENT
Disable component.--help
Display help information.
CAVEATS
Simplified Kubernetes. Single binary. Uses sqlite3 by default.
HISTORY
K3s was created by Rancher Labs in 2019 as a lightweight, certified Kubernetes distribution.
