Configuring Shared Drive

Creating Persistent Volume Claim for shared drive

After installing Detect services, create and configure a shared drive in kubernetes. There are two ways to create Persistent Volume Claim (PVC) in the kubernetes either using YAML file or through UI console.

In the Kubernetes UI console, click Create PersistentVolumeClaim, enter required parameters to create a PVC and create the PVC as shown in the below screenshot.

Alternatively, you can create a yaml file, refer here, and update the required parameters like name, namespace, storageClassName and storage size. After updating the corresponding values in the yaml, run the following command to create PVC.
kubectl apply -f sample_pvc.yaml

Configuring Mount Points

To configure PVC for mounting data to the pod, create and configure the sample-pod-to-copy-appsrc-n-instancehome.yaml file.

Now, copy the acme and instance_home zip files to this the /data folder using the kubectl command.

Kubectl cp <acme zip file> <pod-name>:/data/
Note: Update the image name of your choice.

After the files are copied, rename the acme folder to the appsrc folder, and delete all the folders in the appsrc/lib path.

unzip acme.zip 
mv acme appsrc
cd appsrc/lib
rm -rf *
Finally, change the folder permissions of appsrc and instance_home.
chmod -R 764 appsrc instance_home