
closes-bug: 2094838 Change-Id: I0a143382b0ec0e8f17b0bd5b64c2428c21a7a524 Signed-off-by: Suzana Fernandes <Suzana.Fernandes@windriver.com>
3.6 KiB
3.6 KiB
System Administrator - Configure System Remote CLI & Kubernetes Remote CLI
Configure the remote and kubernetes remote on your Linux-based system so that you can remotely access your system through remote CLI commands.
This procedure should be performed on your Linux-based system.
- You need to have a Linux-based system with python installed and either with Docker installed or 'sudo' capability to install Docker.
- You need to have the
stx-remote-access.tar
file from your system administrator, containing system information related to your system.
Install Docker on your Linux-based system. The following example is for ubuntu.
# Add Docker's official GPG key: $ sudo apt-get update $ sudo apt-get install ca-certificates curl $ sudo install -m 0755 -d /etc/apt/keyrings $ sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc $ sudo chmod a+r /etc/apt/keyrings/docker.asc # Add the repository to Apt sources: $ echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null $ sudo apt-get update # Install Docker Packages $ sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin # Verify that the Docker Engine installation is successful by running the hello-world image. $ sudo docker run hello-world # Manage docker as non-root user $ sudo groupadd docker $ sudo usermod -aG docker $USER $ sudo reboot
Download and extract the remote CLI tar file from the site.
$ cd ~ $ wget https://mirror.starlingx.cengn.ca/mirror/starlingx/master/debian/monolithic/latest_build/outputs/remote-cli/stx-remote-cli-1.0.tgz $ tar xvf stx-remote-cli-1.0.tgz
Extract the system information from the
stx-remote-access-info.tar
file from your system administrator.# Files from your StarlingX System Administrator $ ls ~/stx-remote-access-info.tar $ cd ~/remote_cli $ tar xvf ~/stx-remote-access-info.tar
Update the
starlingxrc
file.$ vi ~/remote_cli/stx-remote-access-info/starlingxrc // and change YOURUSERNAMEHERE to your StarlingX LDAP Username, everywhere in file
Update the
KUBECONFIG
file.$ vi ~/remote_cli/stx-remote-access-info/kubeconfig // and change YOURUSERNAMEHERE to your StarlingX LDAP Username, everywhere in file
Configure the containerized remote CLI clients.
$ ./configure_client.sh -t platform -r ${HOME}/remote_cli/stx-remote-access-info/starlingxrc -k ${HOME}/remote_cli/stx-remote-access-info/kubeconfig -w ${HOME}/remote_cli -p docker.io/starlingx/stx-platformclients:stx.9.0-v1.5.13
- Access the remote CLI and kubernetes remote CLI.
- See
system-administrator-access-system-remote-cli-and-k8s-3807c4f96c87