VSP COMPONENT INSTALLATION IN APPLICATION CONTAINER (CI PHASE)
For VSP Web or VSP Memory, the application base container is transformed into a new container with “-vsp” appended to the name. This transformation is performed by Virsec Deployment Tool (VDT).
-
Log in to the Kubernetes node that has access to the Application image, VSP LFR and VSP CMS
-
Execute the below commands to transform application container to VSP-integrated application container:
-
mkdir -p vsp/<ApplicationName>
-
cd vsp/<ApplicationName>
-
wget http://<LFR_IPAddress>/vsp/vsp_vdt_ci.sh && chmod +x vsp_vdt_ci.sh
-
For Help on the script usage:
./vsp_vdt_ci.sh -h
-
Method 1: Interactive
./vsp_vdt_ci.sh -b <BaseImageName>
-
When prompted, select the appropriate VSP Controller configuration:
Provide “1” to install VSP Controller in application container
-
Parameter: “-m”: Provide “1” to modify the entrypoint of the container image and start the VSP services automatically. The default method used by VSP relies on an injected library to start the VSP services
-
-
Method 2: Automated
./vsp_vdt_ci.sh -b <BaseImageName> -s <VSP Controller deployment type>
-
Parameter: “-s”: Provide the VSP Controller Deployment Type as below:
“1” to install VSP Controller in application container
-
Parameter: “-m”: Provide “1” to modify the entrypoint of the container image and start the VSP services automatically. The default method used by VSP relies on an injected library to start the VSP services
-
-
Parameter: “-u”: Use this parameter if CMS is deployed with custom certificates. Refer Section VSP CMS Deployment for more information
-
-
To execute custom configuration steps, utilize the below optional parameters:
-
Parameter: “-C”: Provide the configuration script file path. This script will be executed before the installation. Ensure that the file contains Dockerfile compatible instructions
-
Sample Usage: ./vsp_vdt_ci.sh -C <PreInstallationConfigScript>
-
-
Parameter: “-P”: Provide the configuration script file path. This script will be executed after the installation
-
Sample Usage: ./vsp_vdt_ci.sh -P <PostInstallationConfigScript>
-
-
These parameters can be utilized to set up proxy server for installation of dependencies and later revert the changes
-
-
Once the script vsp_vdt_ci.sh is executed, a new application image with “-vsp” appended to the image name is created
-
Verification: The application on CMS has the below icons:
-
Lock symbol – To prevent further updates on CMS
-
Green Checkmark – To indicate CI tool execution
-