이 콘텐츠는 선택한 언어로 제공되지 않습니다.

Chapter 14. Creating a site on a local system using the Skupper CLI


Using the skupper command-line interface (CLI) allows you to create and manage Skupper sites from the context of the current user.

A typical workflow is to create a site, link sites together, and expose services to the application network.

A local system includes Docker, Podman or Linux system.

If you require more than one site, specify a unique namespace when using skupper, for example skupper --namespace second-site ....

14.1. Checking the Skupper CLI and environment

Installing the skupper command-line interface (CLI) provides a simple method to get started with Skupper.

  1. Follow the instructions for Installing Skupper.
  2. Verify the installation.

    skupper version
    
    COMPONENT               VERSION
    cli                     2.1.1
    Copy to Clipboard Toggle word wrap
  3. For podman sites:

    Make sure the Podman socket is available. To enable it:

    systemctl --user enable --now podman.socket
    Copy to Clipboard Toggle word wrap

    Enable lingering to ensure the site persists over logouts:

    loginctl enable-linger <username>
    Copy to Clipboard Toggle word wrap

14.2. Creating a simple site using the CLI on local systems

Prerequisites

  • The skupper CLI is installed.

Procedure

  1. Set the SKUPPER_PLATFORM for type of site you want to install:

    • podman
    • docker
    • linux
  2. Install the controller for Podman and Docker sites:

    skupper system install
    Copy to Clipboard Toggle word wrap

    This runs a container to support site, link and service operations. This feature is not available on Linux local system sites (systemd).

  3. Create a site:

    skupper site create <site-name>
    Copy to Clipboard Toggle word wrap

    For example:

    skupper site create my-site
    
    Waiting for status...
    Site "my-site" is ready.
    Copy to Clipboard Toggle word wrap

    While the site is created, the site is not running at this point. To run the site:

    skupper system start
    Copy to Clipboard Toggle word wrap

By default, all sites are created with the namespace default. On non-Kubernetes sites, you can create multiple sites per-user by specifying a namespace, for example you can create multiple sites with different platforms as follows:

skupper site create systemd-site -p linux -n linux-ns
skupper site create docker-site -p docker -n docker-ns
Copy to Clipboard Toggle word wrap

14.3. Deleting a site using the CLI on local systems

Prerequisites

  • The skupper CLI is installed.

Procedure

  1. Enter the following command to delete a site:

    skupper site delete <sitename>
    skupper system stop
    Copy to Clipboard Toggle word wrap
  2. You can also uninstall the controller after deleting all existing sites:

    skupper system uninstall
    Copy to Clipboard Toggle word wrap

14.4. Creating a site bundle using the CLI on local systems

Sometimes, you might want to create all the configuration for a site and apply it automatically to a remote host. To support this, Skupper allows you create a .tar.gz file with all the required files and an install.sh script to start the remote site.

Prerequisites

  • The skupper CLI is installed. The CLI is not required on the remote site.

Procedure

  1. Set the SKUPPER_PLATFORM for type of site you want to install:

    • podman
    • docker
    • linux
  2. Install the controller for Podman and Docker sites:

    skupper system install
    Copy to Clipboard Toggle word wrap

    This runs a container to support site, link and service operations. This feature is not available on Linux local system sites (systemd).

  3. Create a site:

    skupper site create <site-name>
    Copy to Clipboard Toggle word wrap

    For example:

    skupper site create remote-site
    
    Waiting for status...
    Site "remote-site" is ready.
    Copy to Clipboard Toggle word wrap

    While the site is created, the site is not running and that is not a requirement for this usecase.

  4. Create the bundle:

     skupper system generate-bundle remote-site
    Copy to Clipboard Toggle word wrap

    The output shows the location of the generated .tar.gz file, for example:

    Site "remote-site" has been created (as a distributable bundle)
    Installation bundle available at: /home/user/.local/share/skupper/bundles/remote-site.tar.gz
    Default namespace: default
    Default platform: podman
    Copy to Clipboard Toggle word wrap
  5. Transfer the bundle file to the remote location and uncompress the file in an appropriate location:

    tar -xzvf remote-site.tar.gz
    Copy to Clipboard Toggle word wrap
  6. Start the site:

    install.sh
    Copy to Clipboard Toggle word wrap

    The site is now running, you can verify with skupper site status if the CLI is installed at that location.

맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat