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

ceph: support ephemeral volumes with Ceph CSI RBD and CephFS driver #9055

Merged
merged 1 commit into from Nov 4, 2021

Commits on Nov 2, 2021

  1. csi: support ephemeral volumes with Ceph CSI RBD and CephFS driver

    This commit make required changes for ceph csi drivers to work with
    ephemeral volume support. With ephemeral volume support a user can
    specify ephemeral volumes in its pod spec and tie the lifecycle
    of the PVC with the POD.
    
    An example POD spec looks like this:
    
    ```
    kind: Pod
    apiVersion: v1
    metadata:
      name: csi-rbd-demo-ephemeral-pod
    spec:
      containers:
        - name: web-server
          image: docker.io/library/nginx:latest
          volumeMounts:
            - mountPath: "/myspace"
              name: mypvc
      volumes:
        - name: mypvc
          ephemeral:
            volumeClaimTemplate:
              spec:
                accessModes: ["ReadWriteOnce"]
                storageClassName: "rook-ceph-block"
                resources:
                  requests:
                    storage: 1Gi
    ```
    
    Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
    humblec committed Nov 2, 2021
    7
    Copy the full SHA
    dcf522c View commit details
    Browse the repository at this point in the history