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

[Storage][k8s] Support mounting data sources on Kubernetes cluster #2497

Open
romilbhardwaj opened this issue Aug 31, 2023 · 6 comments
Open

Comments

@romilbhardwaj
Copy link
Collaborator

K8s users often have data locally stored on the cluster, typically in the form of a persistent volume + pvc, or a NFS mounted to all nodes, accessed via a hostpath.

From a user:

We have to use the hostpath instead because we cannot transfer the whole datasets directory to the pvc. I want the option to add the pvc or hostpath to the task.yaml.

Our k8s features needs to add support for attaching and accessing data on persistent volumes, hostpaths and/or any other mechanism used by users to access their local data.

Copy link

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the Stale label Dec 30, 2023
Copy link

github-actions bot commented Jan 9, 2024

This issue was closed because it has been stalled for 10 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 9, 2024
@romilbhardwaj romilbhardwaj reopened this Jan 9, 2024
@github-actions github-actions bot removed the Stale label Jan 10, 2024
@romilbhardwaj
Copy link
Collaborator Author

We now have a temporary workaround for this.

Users can edit ~/.sky/config.yaml to specify custom volumes and volume mounts to attach to their pods (docs):

  pod_config:
    spec:
      containers:
        - volumeMounts:       # Custom volume mounts for the pod
            - mountPath: /foo
              name: example-volume
              readOnly: true
      volumes:
        - name: example-volume
          hostPath:
            path: /tmp
            type: Directory

Note that is not an ideal solution since config.yaml would apply globally to all pods, and selecting volume mounts on a per-pod basis is not possible through this mechanism.

@github-actions github-actions bot added the Stale label Jun 22, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 2, 2024
@Michaelvll Michaelvll reopened this Jul 4, 2024
@skypilot-org skypilot-org deleted a comment from github-actions bot Jul 4, 2024
@skypilot-org skypilot-org deleted a comment from github-actions bot Jul 4, 2024
@Michaelvll Michaelvll removed the Stale label Jul 4, 2024
@Michaelvll
Copy link
Collaborator

With #3689, we are able to set volume mount per task in the task yaml.

@Michaelvll Michaelvll reopened this Jul 4, 2024
Copy link

github-actions bot commented Nov 2, 2024

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the Stale label Nov 2, 2024
Copy link

This issue was closed because it has been stalled for 10 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 13, 2024
@romilbhardwaj romilbhardwaj reopened this Nov 13, 2024
@github-actions github-actions bot removed the Stale label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants