LOCAL FILE REPOSITORY (LFR) SERVICE INSTALLATION
Local File Repository (LFR) service installation is the first step. This section describes the setup process in detail.
LFR SERVICE INSTALLATION
-
Create virsec Namespace using the below command:
-
kubectl create namespace virsec
-
-
Create a secret for Virsec Container Registry using the below command:
-
Method 1: Using kubectl command:
kubectl create secret docker-registry regcred --docker-server="vartifacts.jfrog.io" --docker-username="<Virsec_Artifactory_username>" --docker-password="<Virsec_Artifactory_password>" -n virsec
-
Method 2:
-
Log in to the Artifactory site using Virsec-provided credentials from the local machine
-
Navigate to the directory vsp > ReleaseNumber > Helm
-
Right-click on the file vsp_create_secret.sh, listed on the page and download it to the local system
-
Log in to the Management Node
-
Copy the downloaded file vsp_create_secret.sh
-
Execute the script using the below command and provide the artifactory credentials when prompted
./vsp_create_secret.sh
-
-
-
Log in to the Artifactory site using Virsec-provided credentials from the local machine
-
Navigate to the directory vsp > ReleaseNumber > Helm
-
Right-click on the file vsp-lfr-<version>.tgz, listed on the page and download it to the local system
-
Log in to the Management Node
-
Copy the downloaded file vsp-lfr-<version>.tgz
-
-
Execute the below command to display the configurable parameters:
-
helm inspect values ./vsp-lfr-<version>.tgz
-
-
Execute the below commands to install LFR and display the LFR URL (using either Method 1 or 2)
-
Method 1: Using helm install command
-
For On-Premise environments:
-
Helm 3:
helm install vsp-lfr ./vsp-lfr-<RELEASE_VERSION>.tgz --set artifactory.username="<ARTIFACTORY_USERNAME>" --set artifactory.password='<ARTIFACTORY_PASSWORD>' --namespace virsec
-
Helm 2:
helm install --name vsp-lfr ./vsp-lfr-<RELEASE_VERSION>.tgz --set artifactory.username="<ARTIFACTORY_USERNAME>" --set artifactory.password='<ARTIFACTORY_PASSWORD>' --namespace virsec
-
-
For AWS EKS/ GOOGLE GKE environments:
-
Helm 3:
helm install vsp-lfr ./vsp-lfr-<RELEASE_VERSION>.tgz --set cloudProvider=eks --set artifactory.username="<ARTIFACTORY_USERNAME>" --set artifactory.password='<ARTIFACTORY_PASSWORD>' --namespace virsec
-
Helm 2:
helm install --name vsp-lfr ./vsp-lfr-<RELEASE_VERSION>.tgz --set cloudProvider=eks --set artifactory.username="<ARTIFACTORY_USERNAME>" --set artifactory.password='<ARTIFACTORY_PASSWORD>' --namespace virsec
-
-
A sample output of the command is provided below
-
Execute the provided commands to retrieve LFR URL:
export SERVICE_IP=$(kubectl get svc --namespace virsec vsp-lfr --template "{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}")
echo http://$SERVICE_IP:80
-
-
Method 2: Using kubectl command
-
For On-Premise environments:
-
Helm 3:
helm template vsp-lfr ./vsp-lfr-<RELEASE_VERSION>.tgz --set artifactory.username="<ARTIFACTORY_USERNAME>" --set artifactory.password='<ARTIFACTORY_PASSWORD>' --namespace virsec > vsp-lfr.yaml
-
Helm 2:
helm template --name vsp-lfr ./vsp-lfr-<RELEASE_VERSION>.tgz --set artifactory.username="<ARTIFACTORY_USERNAME>" --set artifactory.password='<ARTIFACTORY_PASSWORD>' --namespace virsec > vsp-lfr.yaml
-
-
For AWS EKS/ GOOGLE GKE environments:
-
Helm 3:
helm template vsp-lfr ./vsp-lfr-<RELEASE_VERSION>.tgz --set cloudProvider=eks --set artifactory.username="<ARTIFACTORY_USERNAME>" --set artifactory.password='<ARTIFACTORY_PASSWORD>' --namespace virsec > vsp-lfr.yaml
-
Helm 2:
helm template --name vsp-lfr ./vsp-lfr-<RELEASE_VERSION>.tgz --set cloudProvider=eks --set artifactory.username="<ARTIFACTORY_USERNAME>" --set artifactory.password='<ARTIFACTORY_PASSWORD>' --namespace virsec > vsp-lfr.yaml
-
-
Execute the below commands to deploy LFR URL:
kubectl apply -f vsp-lfr.yaml
-
Execute the below commands to retrieve LFR URL:
export SERVICE_IP=$(kubectl get svc --namespace virsec vsp-lfr --template "{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}")
echo http://$SERVICE_IP:80
-
-