我已经通过minikube部署了一个swagger界面,以便当我将基于json的查询传递给该界面时,它开始下载卫星图像bu,从而开始和停止实际运行容器的作业。我的实际问题是,当我运行查询时,它所做的一切都很好,并且还成功下载了匹配的卫星图像。我已通过检查日志并在数据上执行get
查询来确认它已下载,但我在本地文件系统上看不到它。如何修改我的配置?这是我的PV和json查询,请告知是否还需要其他任何内容。
json查询
{
"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
这是我将本地文件夹路径挂载到minikube的过程,其中我将其用作查询中的mountPath。 sudo minikube mount /home/Downloads/cdi:/cdi