Skip to main content

K3s

K3s is a highly available, certified Kubernetes distribution designed for production workloads in unattended, resource-constrained, remote locations or inside IoT appliances.

Server Node & Agent Node

  1. Installing K3s as a Server Node
curl -sfL https://get.k3s.io | sh -
  1. Installing K3s as an Agent Node
curl -sfL https://get.k3s.io | K3S_URL=https://<server>:6443 K3S_TOKEN=<token> sh -
  1. Uninstalling K3s Server Node
/usr/local/bin/k3s-uninstall.sh
  1. Uninstalling K3s Agent Node
/usr/local/bin/k3s-agent-uninstall.sh

Common Commands

  1. Get pods for all namespaces
kubectl get pods -A