k3s
Lightweight Kubernetes distribution for edge, IoT, and development. Full K8s API in a single binary under 100MB.
66 commands
Browse by Topic
Install k3s
Install k3s lightweight Kubernetes on Linux
Check node status
List cluster nodes using k3s kubectl
Copy kubeconfig
Copy k3s kubeconfig for standard kubectl access
Install k3s server
Install k3s server with defaults.
Install without traefik
Install without built-in ingress.
Install with kubeconfig mode
Install with readable kubeconfig.
Uninstall k3s
Completely remove k3s server.
Install specific version
Install specific k3s version.
Install agent node
Install k3s in agent-only mode joining an existing server.
Install with INSTALL_K3S_EXEC
Pass server flags via INSTALL_K3S_EXEC env var.
Install with embedded etcd
Initialize HA cluster with embedded etcd datastore.
Install with external database
Install using an external PostgreSQL or MySQL datastore.
Air-gap install
Install k3s in an air-gapped environment with pre-downloaded images.
Install with TLS SAN
Add additional Subject Alternative Name for the TLS certificate.
Join server to HA cluster
Join additional server node to an existing HA etcd cluster.
Get node token
Get token to join agents.
Join agent to cluster
Join worker node to cluster.
Check k3s status
Check k3s service status.
Restart k3s
Restart k3s service.
Uninstall agent
Remove k3s agent node.
Label a node
Add a label to a cluster node.
Drain a node
Safely evict all pods from a node before maintenance.
Cordon a node
Mark node as unschedulable to prevent new pods.
Uncordon a node
Mark node as schedulable again after maintenance.
Reset cluster
Reset the cluster to a single-member etcd cluster.
View k3s logs
Follow k3s service logs in real time.
Stop k3s service
Stop the k3s server process.
Delete a node
Remove a node from the cluster.
Create config file
Create k3s configuration file.
View k3s check-config
Check system requirements.
Enable secrets encryption
Install with secrets encryption enabled.
Configure private registry
Edit registries.yaml to configure private container registries.
Disable multiple components
Install k3s with multiple built-in components disabled.
Set custom data directory
Store k3s data in a custom directory instead of /var/lib/rancher/k3s.
Configure containerd
Create custom containerd config template for k3s.
Set node name
Install with a custom node name instead of hostname.
Set cluster CIDR
Configure custom pod and service CIDR ranges.
Use flannel backend
Install with WireGuard-native as the flannel backend for encrypted networking.
Set kubelet args
Pass custom arguments to the kubelet process.
Disable cloud controller
Disable the built-in cloud controller manager.
Create etcd snapshot
Create manual etcd snapshot.
List snapshots
List available etcd snapshots.
Restore from snapshot
Restore cluster from snapshot.
Delete snapshot
Delete an etcd snapshot.
Configure auto snapshots
Enable automatic snapshots every 6 hours.
Set snapshot retention
Configure scheduled snapshots with a retention count of 10.
Snapshot to S3
Save an etcd snapshot directly to an S3-compatible bucket.
Restore from S3 snapshot
Restore cluster from an S3-stored etcd snapshot.
Set snapshot directory
Configure a custom directory for storing etcd snapshots.
Backup kubeconfig
Create a backup copy of the kubeconfig file.
Discussion
Loading comments...