mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-15 02:40:23 +00:00
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
|