Administrator CLI¶
The Run:ai Administrator (runai-adm
) is a lightweight tool designed to support infrastructure administrators by simplifying two key tasks:
- Collecting logs for troubleshooting and sharing with Run:ai support.
- Configuring node roles in the cluster for optimal performance and reliability.
This article outlines the installation and usage of the Run:ai Administrator CLI to help you get started quickly.
Prerequisites¶
Before installing the CLI, review the following:
- Operating system: The CLI is supported on Mac and Linux.
- Kubectl: The Kubernetes command-line interface must be installed and configured to access your cluster. Follow the official guide.
- Cluster administrative permissions: The CLI requires a Kubernetes profile with administrative privileges.
Installation¶
To install the Run:ai Administrator CLI, ensure that the CLI version matches the version of your Run:ai cluster. You can either install the latest version or a specific version from the list.
Installing the latest version¶
Use the following commands to download and install the latest version of the CLI:
Installing a specific version¶
To install a specific version of the Administrator CLI that matches your Run:ai cluster version, append the version number to the download URL. Refer to the list of available versions linked above for the correct version number.
Verifying installation¶
Verify your installation completed successfully by running the following command:
Reference¶
Node roles¶
To set or remove node rules using the runai-adm
tool, run the following:
Note
Use the --all
flag to set or remove a role to all nodes.
Collect logs¶
To collect logs using the runai-adm
tool:
-
Run the following command:
-
Locate the generated compressed log file.