CMS
-
For upgrade from VSP CMS 2.4.x or previous versions, execute the commands:
-
rm -rf /home/virsec/kafkavolume
-
rm -rf /home/virsec/zookeepervolume
-
-
For upgrade from VSP CMS 2.5, execute the commands:
-
rm -rf /var/kafkavolume
-
rm -rf /var/zookeepervolume
-
-
For an EKS environment, execute the below commands to delete PV and PVC for jreports-content and jreports-database
-
Execute the commands below for upgrade from all VSP versions 2.2.x and below:
-
Delete PVC
kubectl -n virsec delete pvc jreports-content-claim
kubectl -n virsec delete pvc jreports-database-claim
-
Delete PV
kubectl -n virsec delete pv jreports-content
kubectl -n virsec delete pv jreports-database
kubectl get pv | grep virsec/jreports-database-claim | awk '{print $1}' | xargs -I {} kubectl delete pv {}
kubectl get pv | grep virsec/jreports-content-claim | awk '{print $1}' | xargs -I {} kubectl delete pv {}
-
Verification: Ensure that the command below does not give any output list
kubectl get pv,pvc,storageclass --all-namespaces
-
-
Execute the commands below for upgrade from VSP 2.2.3 only:
-
Delete PVC (SSL)
kubectl delete pvc ssl-certs-content-claim -n virsec
-
Delete PV (SSL)
kubectl delete pv ssl-certs-content
kubectl get pv | grep virsec/ssl-certs-content-claim | awk '{print $1}' | xargs -I {} kubectl delete pv {}
-
-
-
Download the file vsp_cleanup_cms.sh from the Artifactory directory vsp > ReleaseNumber > Helm
-
To view the help menu, execute the below command:
./vsp_cleanup_cms.sh -h
-
Execute the same command using one of the below parameters to remove the previous version
-
-S (Optional): For clean CMS setup. This deletes all the services of the previous setup (if any)
-
-
-
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 cms-<version>.tgz, listed on the page and download it to the local system
-
Upgrade VSP CMS by executing the below steps:
-
Log in to the Management Node
-
Copy the downloaded file cms-<version>.tgz
-
Execute the below command to display the configurable parameters:
helm inspect values ./cms-<version>.tgz
-
-
Create a custom value file to provide the Artifactory username and password
-
vi <CustomFileName>.yaml
NOTE:
Only Multi-pod CMS deployment is supported
-
Optional CMS Services Deployment: To deploy optional CMS services, configure the parameters as described below:
-
Indicate true or false for all the optional services installation - Ticketing (Zendesk), Syslog, Splunk, Centralized logging, MSSP Portal, VSP APIs, Reporting
-
-
Secure Kafka Options: The options are available for Kafka are:
0: For Unsecure Kafka connection. By default, the value is set to 0 if not specified
1: For One-way SSL where the Client verifies the server
2: For Two-way SSL where both the Client and Server verify each other
NOTE:
If the Probes are of version 2.4.x and below, ensure that only option 0 is used for Kafka. Do not use options 1 or 2. as they are not supported
-
Sample Usage: The example below depicts One-way SSL configuration:
helm install vsp-cms ./cms-<RELEASE_VERSION>.tgz --set cloudProvider=eks --set kafka.secureKafkaMode="1" --namespace virsec
-
-
Method 1: Using helm upgrade command
NOTE:
Provide the parameter “-f <CustomFileName>.yaml” in the below commands if selective optional CMS services need to be installed
-
For On-Premise environments:
-
Helm 3:
helm upgrade vsp-cms ./cms-<RELEASE_VERSION>.tgz --set upgrade=true --namespace virsec
-
Helm 2:
helm upgrade --name vsp-cms ./cms-<RELEASE_VERSION>.tgz --set upgrade=true --namespace virsec
-
-
For AWS EKS/ GOOGLE GKE environments:
-
Helm 3:
helm upgrade vsp-cms ./cms-<RELEASE_VERSION>.tgz --set upgrade=true --set cloudProvider=eks --namespace virsec
-
Helm 2:
helm upgrade --name vsp-cms ./cms-<RELEASE_VERSION>.tgz --set upgrade=true --set cloudProvider=eks --namespace virsec
-
-
Verification: Execute the below command to verify the upgrade:
helm status vsp-cms
-
Execute the Provided commands to retrieve CMS URL:
$ export SERVICE_IP=$(kubectl get svc --namespace virsec vsp-cms --template "{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}")
$ echo https://$SERVICE_IP:443
-
-
Method 2: Using kubectl command
NOTE:
Provide the parameter “-f <CustomFileName>.yaml” in the below commands if selective optional CMS services need to be installed
-
For On-Premise environments:
-
Helm 3:
helm template vsp-cms ./cms-<RELEASE_VERSION>.tgz --set upgrade=true --namespace virsec > vsp-cms.yaml
-
Helm 2:
helm template --name vsp-cms ./cms-<RELEASE_VERSION>.tgz --set upgrade=true --namespace virsec > vsp-cms.yaml
-
-
For AWS EKS/ GOOGLE GKE environments:
-
Helm 3:
helm template vsp-cms ./cms-<RELEASE_VERSION>.tgz --set upgrade=true --set cloudProvider=eks --namespace virsec > vsp-cms.yaml
-
Helm 2:
helm template --name vsp-cms ./cms-<RELEASE_VERSION>.tgz --set upgrade=true --set cloudProvider=eks --namespace virsec > vsp-cms.yaml
-
-
Execute the below command to deploy VSP CMS:
kubectl apply -f vsp-cms.yaml
-
Execute the below commands to retrieve CMS URL:
$ export SERVICE_IP=$(kubectl get svc --namespace virsec vsp-cms --template "{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}")
$ echo https://$SERVICE_IP:443
-
-
NOTE:
If a proxy server with SSL (for internet access) OR LDAP server with SSL (for user management) is configured, ensure that the root certificate information is added to the property file, as described in the Deploy Custom SSL Certificates topic of the Maintenance Section