Install kubeslice-cli
Introduction
kubeslice-cli is a command-line tool that allows you to perform KubeSlice operations on Kubernetes and cloud clusters. It simplifies the process to install and uninstall the workloads needed to run KubeSlice Controller and Slice Operator in the specified clusters. This tool registers those clusters as part of a KubeSlice multi-cluster, and administer slices across those clusters.
The tool takes input in the form of YAML files that describe the membership of clusters in the multi-cluster (the topology
YAML file)
as well as the definition of slices across those clusters (the slice configuration
YAML file). Given those YAML files, it simplifies
installation of KubeSlice by performing all of the necessary configuration steps to apply the appropriate config to each cluster.
You can install KubeSlice on your existing kind or cloud clusters.
Alternatively, to get familiar with KubeSlice, you can create a multicluster using kind clusters. Use the
kubeslice-cli install —profile
option to create a demo setup consisting of one controller and two worker clusters.
Install the kubeslice-cli Tool
To install the kubeslice-cli
tool on different operating systems, download an executable version from the
Releases page.
Install kubeslice-cli on Windows
To install kubeslice-cli:
-
Download the latest Windows version from the Releases page. After downloading the executable file, rename it to kubeslice-cli.exe for ease of use.
-
Navigate to the directory where you have downloaded the executable file or provide the absolute path to run the
kubeslice-cli
command. -
Ensure the downloaded version is the latest using the following command:
.\kubeslice-cli.exe --version
Install kubeslice-cli on Linux
To install kubeslice-cli on Linux or Ubuntu:
-
Download the latest Linux version from the Releases page.
-
Create a symlink to access the file:
infoA symlink is a symbolic Linux/ UNIX link that points to another file or folder on your computer, or a connected file system.
ln -s <downloaded-binary> ~/bin/kubeslice-cli
-
Ensure the downloaded version is the latest using the following command:
kubeslice-cli --version