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

Add inline volume support for Ceph CSI driver #2587

Closed
humblec opened this issue Oct 19, 2021 · 4 comments
Closed

Add inline volume support for Ceph CSI driver #2587

humblec opened this issue Oct 19, 2021 · 4 comments
Assignees
Labels
enhancement New feature or request wontfix This will not be worked on

Comments

@humblec
Copy link
Collaborator

humblec commented Oct 19, 2021

Describe the feature you'd like to have

Traditionally, volumes that are backed by CSI drivers can only be used with a PersistentVolume and PersistentVolumeClaim object combination. Two different Kubernetes features allow volumes to follow the Pod's lifecycle: CSI ephemeral volumes and generic ephemeral volumes.

In both features, the volumes are specified directly in the pod specification for ephemeral use cases. At runtime, nested inline volumes follow the ephemeral lifecycle of their associated pods where Kubernetes and the driver handle all phases of volume operations as pods are created and destroyed.

CSI ephemeral Inline volume spec example:

kind: Pod
apiVersion: v1
metadata:
  name: my-csi-app
spec:
  containers:
    - name: my-frontend
      image: busybox
      volumeMounts:
      - mountPath: "/data"
        name: my-csi-inline-vol
      command: [ "sleep", "1000000" ]
  volumes:
    - name: my-csi-inline-vol
      csi:
        driver: <drivername>
        volumeAttributes:
          something: something

General inline ephemeral support example:

kind: Pod
apiVersion: v1
metadata:
  name: some-pod
spec:
  containers:
     ...
  volumes:
    - name: scratch-volume
      ephemeral:
        volumeClaimTemplate:
          metadata:
            labels:
              type: my-frontend-volume
          spec:
            accessModes: [ "ReadWriteOnce" ]
            storageClassName: "scratch-storage-class"
            resources:
              requests:
                storage: 1Gi

What new functionality do you want?

Add inline volume support for Ceph CSI driver

What is the value to the end user? (why is it a priority?)

The volume lifecycle can be controlled by the POD spec

Additional context

Design doc for the feature support has been captured here:
https://hackmd.io/SXcB4VizTKaI4E7efOV_xw

@Madhu-1
Copy link
Collaborator

Madhu-1 commented Oct 20, 2021

@humblec why have one more tracker as we already have an issue opened for this one? can we close this one and make use of #1461?

@humblec
Copy link
Collaborator Author

humblec commented Oct 20, 2021

@humblec why have one more tracker as we already have an issue opened for this one? can we close this one and make use of #1461?

That issue has been filed only for cephfs and this tracker supposed to cover ceph csi driver in general and also kind of umbrella tracker for the feature. #1461 can be added as a subtracker in that sense.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the wontfix This will not be worked on label Nov 20, 2021
@github-actions
Copy link

This issue has been automatically closed due to inactivity. Please re-open if this still requires investigation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants