Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mount persistent volumes #2082

Open
8ball030 opened this issue Oct 6, 2023 · 0 comments
Open

Mount persistent volumes #2082

8ball030 opened this issue Oct 6, 2023 · 0 comments
Labels
enhancement New feature or request open-autonomy Related to open-autonomy framework

Comments

@8ball030
Copy link
Collaborator

8ball030 commented Oct 6, 2023

At present, there is no easy way to mount a build to a persistent volume.

Would be great to be able to do so;

(ideally using a similar syntax to Kubernetes, such that persistnt volumes cna easily be mounted as part of a spec).

Please see;

apiVersion: v1
kind: Pod
metadata:
  name: pv-recycler
  namespace: default
spec:
  restartPolicy: Never
  volumes:
  - name: vol
    hostPath:
      path: /any/path/it/will/be/replaced
  containers:
  - name: pv-recycler
    image: "registry.k8s.io/busybox"
    command: ["/bin/sh", "-c", "test -e /scrub && rm -rf /scrub/..?* /scrub/.[!.]* /scrub/*  && test -z \"$(ls -A /scrub)\" || exit 1"]
    volumeMounts:
    - name: vol
      mountPath: /scrub

In the deployment (for kube) we need to pass;

mountpath 
storageClassName (default can be "")
vol_name

For for docker-compose, need to be able to pass a host path.

Would be cool to have an array of volumes we can mount per agent.

@DavidMinarsch DavidMinarsch added enhancement New feature or request open-autonomy Related to open-autonomy framework labels Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request open-autonomy Related to open-autonomy framework
Projects
None yet
Development

No branches or pull requests

2 participants