mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-23 06:40:23 +00:00
e6949945bb
This commit adds the validation of csi cephfs driver 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 also included in this commit. Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
24 lines
502 B
YAML
24 lines
502 B
YAML
---
|
|
kind: Pod
|
|
apiVersion: v1
|
|
metadata:
|
|
name: csi-cephfs-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: csi-cephfs-sc
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|