LinuxCommandLibrary

k3s

lightweight Kubernetes distribution

TLDR

Start server

$ sudo k3s server
copy
Join as agent
$ sudo k3s agent --server [https://server:6443] --token [token]
copy
Get kubeconfig
$ sudo k3s kubectl config view
copy
Run kubectl command
$ k3s kubectl get pods
copy
Start with disabled components
$ sudo k3s server --disable traefik
copy
Check token
$ sudo cat /var/lib/rancher/k3s/server/node-token
copy

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.

SEE ALSO

kubectl(1), k3d(1), crictl(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community