Files
docs/doc/source/security/kubernetes/system-administrator-configure-system-remote-cli-and-7b814d8937df.rst
Elisamara Aoki Gonçalves 0ac6ac7dc3 Fix prefix of stx-remote-cli-<version> tarball (dsR10,dsR10minor,r10)
Fix prefix.

Change-Id: I68b91a01faed64dd1ecc2af6438ef41d221f1ccc
Signed-off-by: Elisamara Aoki Gonçalves <elisamaraaoki.goncalves@windriver.com>
2025-08-18 17:09:36 +00:00

3.7 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 -remote-access.tar file from your system administrator, containing system information related to your system.

  1. 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
  2. Download and extract the remote CLI tar file from the site.

  3. Extract the system information from the -remote-access-info.tar file from your system administrator.

    # Files from your StarlingX System Administrator $ ls ~/-remote-access-info.tar

    $ cd ~/remote_cli $ tar xvf ~/-remote-access-info.tar

  4. Update the starlingxrc file.

    $ vi ~/remote_cli/-remote-access-info/starlingxrc

    // and change YOURUSERNAMEHERE to your StarlingX LDAP Username, everywhere in file

  5. Update the KUBECONFIG file.

    $ vi ~/remote_cli/-remote-access-info/kubeconfig

    // and change YOURUSERNAMEHERE to your StarlingX LDAP Username, everywhere in file

  6. Configure the containerized remote CLI clients.

    $ ./configure_client.sh -t platform -r ${HOME}/remote_cli/-remote-access-info/starlingxrc -k ${HOME}/remote_cli/-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