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 ....
Checking the Skupper CLI and environment¶
Installing the skupper command-line interface (CLI) provides a simple method to get started with Skupper.
Procedure
-
Follow the instructions for Installing Skupper.
-
Verify the installation.
-
For podman sites:
Make sure the Podman socket is available. To enable it:
Enable lingering to ensure the site persists over logouts:Creating a simple site using the CLI on local systems¶
Use the Skupper CLI to create a site on a local system.
Prerequisites
- The
skupperCLI is installed.
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:
skupper site create systemd-site -p linux -n linux-ns
skupper site create docker-site -p docker -n docker-ns
Procedure
-
Set the
SKUPPER_PLATFORMfor type of site you want to install: -
podman docker-
linux -
Install the controller for Podman and Docker sites:
- Create a site:
Deleting a site using the CLI on local systems¶
Delete a Skupper site on a local system by using the CLI.
Prerequisites
- The
skupperCLI is installed.
Procedure
-
Enter the following command to delete a site:
-
You can also uninstall the controller after deleting all existing sites:
Creating a site bundle using the CLI on local systems¶
Create a site bundle when you want to prepare a site on one system and install it on a remote host.
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
skupperCLI is installed. The CLI is not required on the remote site.
Procedure
-
Set the
SKUPPER_PLATFORMfor type of site you want to install: -
podman docker-
linux -
Install the controller for Podman and Docker sites:
- Create a site:
- Create the bundle:
The output shows the location of the generated
.tar.gzfile, for example: -
Transfer the bundle file to the remote location and uncompress the file in an appropriate location:
-
Start the site:
The site is now running, you can verify withskupper site statusif the CLI is installed at that location.