Skip to content

RKE2 Administration

This document provides a quick reference for managing and troubleshooting an RKE2 Kubernetes cluster. It includes common administrative commands for crictl, kubectl, and RKE2 components.


Before using the commands in this guide, ensure the following requirements are met:

  • RKE2 is installed.
  • kubectl is installed and configured.
  • crictl is installed.
  • You have sufficient privileges (typically sudo) to manage the cluster.

Install RKE2 by following the official installation instructions for your operating system and environment.

The following tools are required:

  • RKE2
  • kubectl
  • crictl

Keep your RKE2 installation up to date by using the latest stable release recommended by your organization.

Refer to the official Kubernetes and RKE2 documentation for detailed API and configuration information.


crictl communicates directly with the container runtime. Before using it, verify that it is configured with the correct runtime endpoint.

Run the following command to identify the active container runtime:

Terminal window
ps aux | grep -E 'containerd|crio|dockerd'

Edit the crictl configuration file:

Terminal window
sudo nano /etc/crictl.yaml

Update the runtime endpoint to match the socket identified in the previous step.

Example configuration (RKE2 default):

runtime-endpoint: unix:///run/k3s/containerd/containerd.sock
image-endpoint: unix:///run/k3s/containerd/containerd.sock
timeout: 10
debug: false

Useful commands for inspecting and troubleshooting Kubernetes resources.

Terminal window
kubectl get pods --all-namespaces
Terminal window
kubectl logs <pod-name> -n kube-system

Stop all RKE2 processes:

Terminal window
rke2-killall.sh
Terminal window
journalctl -u rke2-server -f
Terminal window
systemctl stop rke2-server
Terminal window
systemctl start rke2-server
Terminal window
systemctl restart rke2-server
Terminal window
systemctl restart rke2-agent

Terminal window
journalctl -u rke2-agent -f
Terminal window
systemctl restart rke2-agent

To completely remove RKE2 from a node:

Terminal window
/usr/local/bin/rke2-uninstall.sh