i have deployed a swagger interface through minikube so that when i pass a json based query to the interface, it starts downloading the satellite imagery bu starting and stopping a job which actually runs a container. My actual issue is that when i run the query it's doing everything fine and also successfully downloads the matched satellite imagery. i have confirmed it's download by checking the logs and performing get
queries on the data BUT i am unable to see it physically on my local filesystem. How can i modify my configurations? Here is my PV and my json query and please tell if anything else is required.
json query
{
"workflowName": "ingestion_and_preprocessing",
"jobs": [
{
"jobName": "ingestion",
"container": {
"image": "cdi_ingestion:ingestion",
"imagePullPolicy": "Never",
"properties": {
"scihub_username": "test",
"scihub_password": "test",
"producttype": "S2MSI2A",
"platformname": "Sentinel-2",
"footprint":"POLYGON((6.3853 51.7592,7.3604 51.7592,7.3604 51.5001,6.3853 51.5001,6.3853 51.7592))",
"start_date": "2018-04-01T00:00:00.000Z",
"end_date": "2018-04-15T00:00:00.000Z",
"max_cloud_cover_percentage": "10"
},
"volumes": [
{
"name": "pvc-cdi-datastore",
"mountPath": "/home/Downloads/cdi"
}
]
}
}
]
}
PV.yaml
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv0001
namespace: default
spec:
storageClassName: manual
capacity:
storage: 999Gi
accessModes:
- ReadWriteMany
hostPath:
path: /cdi
PVC.yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pvc-cdi-datastore
namespace: default
spec:
storageClassName: manual
accessModes:
- ReadWriteMany
resources:
requests:
storage: 100Gi
Here is how i mount my local folder path to minikube whiich i am using as mountPath in query. sudo minikube mount /home/Downloads/cdi:/cdi