- Collect logging and system metrics from nodes.
- Remove Kubernetes resources created by Rancher.
The following commands are available:
Download System Tools
You can download the latest version of System Tools from the . Download the version of for the OS that you are using to interact with the cluster.
After you download the tools, complete the following actions:
Rename the file to
system-tools
.Give the file executable permissions by running the following command:
Logs
The logs subcommand will collect log files of core Kubernetes cluster components from nodes in or nodes on an RKE Kubernetes cluster that Rancher is installed on.. See for a list of core Kubernetes cluster components.
System Tools will use the provided kubeconfig file to deploy a DaemonSet, that will copy all the logfiles from the core Kubernetes cluster components and add them to a single tar file (cluster-logs.tar
by default). If you only want to collect logging from a single node, you can specify the node by using --node NODENAME
or -n NODENAME
.
The following are the options for the logs command:
Stats
The stats subcommand will display system metrics from nodes in or nodes in an RKE Kubernetes cluster that Rancher is installed on..
System Tools will deploy a DaemonSet, and run a predefined command based on sar
(System Activity Report) to show system metrics.
Remove
When you install Rancher on a Kubernetes cluster, it will create Kubernetes resources to run and to store configuration data. If you want to remove Rancher from your cluster, you can use the remove
subcommand to remove the Kubernetes resources. When you use the remove
subcommand, the following resources will be removed:
- The Rancher deployment namespace (
cattle-system
by default). - Labels, annotations, and finalizers.
- Rancher Deployment.
- Machines, clusters, projects, and user custom resource deployments (CRDs).
- All resources create under the
management.cattle.io
API Group. - All CRDs created by Rancher v2.x.
When you run the command below, all the resources listed above will be removed from the cluster.
The following are the options for the remove
command: