Automate an Offline Embedded Installation
This topic provides automation steps for setting up an offline, single-node Swimlane installation on embedded clusters.
Installation Preparation and Customization
Before you begin, review the System Requirements for an Embedded Cluster InstallSystem Requirements for an Embedded Cluster Install to confirm your system's compliance. The Swimlane Platform Installer (SPI) performs several checks in the initial phases of the installation to ensure the underlying host is compatible with the application. To bypass any applicable checks, an installer patch YAML file can be applied at installation time to account for several of these settings. Refer to Overriding Installer SettingsOverriding Installer Settings for more options.
Installer Patch File Example
Here is an example installer patch file:
You also need the following files:
- Swimlane Platform Installer license file (ends with .yaml)
- Swimlane license file (ends with .lic)
- Swimlane tar archive (ends with .tar.gz)
- Swimlane airgap bundle (ends with .airgap)
Embedded Cluster Installation
Once you've accounted for any customizations and system checks, install an embedded cluster by running the following command:
Swimlane Installation and Deployment
After the embedded Kubernetes cluster has been installed, install Swimlane with the following command:
Creating an SPI Config File
The <SPI Config File>.yaml file is a YAML-formatted file that outlines the specifications of a Swimlane deployment. You can get the .yaml file from an previously configured installation of SPI or by creating a new file manually.
To obtain a file from an previously configured SPI install, run the following command from a system with access to the Kubernetes API and the SPI Kubectl Add-on installed:
kubectl kots download swimlane-platform -n <namespace>
This command downloads a copy of the entire SPI deployment specifications to a local folder named swimlane-platform.
The config file is located at ./swimlane-platform/upstream/userdata/config.yaml in the downloaded folder.
To create the file manually, here are all configurable options available in the Embedded Cluster SPIEmbedded Cluster SPI.
Here is a basic version of the config file that you can use for an initial single-node configuration:
Swimlane Initial Login
It takes a few minutes for Swimlane to initialize all of the required components. However, automation can effectively 'wait' for a ready state by waiting for a ready status from different parts of the deployment. There are multiple ways to accomplish this wait period, the following code block is just one example:
Next, continue with the Swimlane installation by creating the initial administrative user.
Using your Swimlane license .lic file, first generate the necessary license block for the API call with a curl command:
curl -kLv -X POST https://<Swimlane URL>/api/settings/license/upload -H 'Content-Type: multipart/form-data' -F file=@<Swimlane License File>.lic
Then, to create the initial administrative user, insert the returned JSON into the following curl command: