Emma Rizzi
06/06/2022, 1:18 PM--volume
option on the docker agent for my flow to access shared volumes. I tried to configure this in the job_template option of the Kubernetes run (code in thread) but it fails with the following error when i launched the flow. Is there any example to follow to use volumes with kubernetes ?flow.run_config = KubernetesRun(
job_template={
"apiVersion": "batch/v1",
"kind": "Job",
"spec": {
"template": {
"spec": {
"containers": {
"volumeMounts": [
{ "name": "nfs", "mountPath": "/mnt/dev" },
{ "name": "eodata", "mountPath": "/eodata" }
],
},
"volumes": [
{
"name": "nfs",
"hostPath": {
"path": "/mnt/dev",
"type": "Directory"
}
},
{
"name": "eodata",
"hostPath": {
"path": "/eodata",
"type": "Directory"
}
}
]
}
}
}
}
)
Kevin Kho
06/06/2022, 2:48 PM--show-flow-logs
on the agent so we can get a better error message?Emma Rizzi
06/06/2022, 3:03 PMjob_template={
"apiVersion": "batch/v1",
"kind": "Job",
"spec": {
"template": {
"spec": {
"containers": [
{
"name": "flow",
"volumeMounts": [
{ "name": "nfs", "mountPath": "/mnt/dev" },
{ "name": "eodata", "mountPath": "/eodata" }
]
}
],
"volumes": [
{
"name": "nfs",
"hostPath": {
"path": "/mnt/dev",
"type": "Directory"
}
},
{
"name": "eodata",
"hostPath": {
"path": "/eodata",
"type": "Directory"
}
}
]
}
}
}
}
Kevin Kho
06/06/2022, 4:07 PM