Installing AppScan 360° with Helm
A Helm installation of AppScan 360° requires a persistent, reliable Internet connection in addition the requirements for setting up the AppScan 360° environment. The system must be able in download Helm charts from HCL Harbor regularly.
- Verify that you have a stable and persistent Internet connection for downloading Helm charts from GitHub, and for fetching Docker images and Helm packages from HCL Harbor.
- The configuration file is available and named properly.
Install helmfile
- Download the helmfile binary
file:
wget https://github.com/helmfile/helmfile/releases/download/v0.169.1/helmfile_0.169.1_linux_amd64.tar.gz - Extract the downloadable
file:
tar -xvzf helmfile_0.169.1_linux_amd64.tar.gz - Move the helmfile binary to an appropriate local directory. For example,
usr/local/bin/.sudo mv helmfile /usr/local/bin/ - Give executable permission to the
file:
sudo chmod +x /usr/local/bin/helmfile - Verify the
installation:
helmfile --version
Setup the Harbor connection
- Use the Docker login with your
usernameandpasswordas defined incli-secret:docker login hclcr.io - Set environment variables for the
docker/config.jsonfile:export HCLCR_USERNAME=<harbor-username> export HCLCR_PASSWORD=<harbor-password/cli-secret> - Set environment variables for base64
encoding:
export AS360_KNI_JSON_CONFIG_AS_BASE64="<base64-value-of-docker-config.json>"
Setup the GitHub repository
git clone --branch main https://github.com/HCL-TECH-SOFTWARE/AppScan-360-Helm-Files.gitAppScan-360-Helm-Files
├── Helm.d
│ ├── helmfile-ASCP.yaml
│ ├── helmfile-ASRA.yaml
│ └── helmFileCustomization
│ ├── clusterKit.yaml
│ ├── singular-singular.clusterKit-Sample.yaml
│ └── siteKit.yaml
└── helmfile.yamlInstall AppScan 360°
AppScan-360-Helm-Files),
run:helmfile syncTroubleshooting Helm installation
-
No state file foundThe state file must be namedhelmfile.d/*.- Navigate to
AppScan-360-Helm-Files -> helm.d - Run
run helmfile sync
- Navigate to
-
./helmfile.yaml: in .helmfiles[0]: in helm.d/helmfile-ASCP.yaml: failed processing release appscan360-ascp: values file matching "helmFileCustomizations/singular-singular.clusterKit.yaml" does not exist in "."The properties file (
singular-singular.clusterKit.yaml) is missing. Verify the file is in the correct location and try again. -
Failed to pull helm-packages or docker imagesThe Docker login is missing, or
HCLCR_USERNAMEandHCLCR_PASSWORDenvironment variable is missing. Verify the login information and try again. -
Failed to get pull secretThe
.docker/config.jsonfile is missing orAS360_KNI_JSON_CONFIG_AS_BASE64with appropriate value is not defined. Verify the login information and try again.