/kind feature
To continue idea proposed here: #1062.
We would like to attach persistent volume to every deployed suggestion to save suggestion state after corresponding pod is deleted.
To implement this we should follow these steps:
-
Extend ResumePolicyType with the new type. My idea, name it VolumeSource, any other ideas?
-
Add new Storage Class YAML to Katib deployed manifests. I am not sure what should be the default provisioner for us, since k8s doesn't support dynamic volume provisioning for local storage (https://kubernetes.io/blog/2019/04/04/kubernetes-1.14-local-persistent-volumes-ga/#limitations-of-ga).
We can be specific to GKE and use Persistent Disks (https://kubernetes.io/docs/concepts/storage/storage-classes/#gce-pd). Or use 3rd party local path provisioner (https://github.com/rancher/local-path-provisioner), this require additional controller.
What do you think ?
-
Implement new logic to the controller:
- Create PVC when user submits Experiment.
- Attach PVC to suggestion deployment.
- Delete suggestion resources when Experiment is succeeded.
- Restore suggestion resources when Experiment is resuming.
- Extend
katib-config with the new parameters for suggestion PVC.
What do you think @gaocegege @johnugeorge ?
/cc @sperlingxx @c-bata @jlewi
/priority p0
/kind feature
To continue idea proposed here: #1062.
We would like to attach persistent volume to every deployed suggestion to save suggestion state after corresponding pod is deleted.
To implement this we should follow these steps:
Extend
ResumePolicyTypewith the new type. My idea, name itVolumeSource, any other ideas?Add new Storage Class YAML to Katib deployed manifests. I am not sure what should be the default provisioner for us, since k8s doesn't support dynamic volume provisioning for local storage (https://kubernetes.io/blog/2019/04/04/kubernetes-1.14-local-persistent-volumes-ga/#limitations-of-ga).
We can be specific to GKE and use Persistent Disks (https://kubernetes.io/docs/concepts/storage/storage-classes/#gce-pd). Or use 3rd party local path provisioner (https://github.com/rancher/local-path-provisioner), this require additional controller.
What do you think ?
Implement new logic to the controller:
katib-configwith the new parameters for suggestion PVC.What do you think @gaocegege @johnugeorge ?
/cc @sperlingxx @c-bata @jlewi
/priority p0