mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-02-23 02:29:30 +00:00
rm example documents about unsupported block volume
This commit is contained in:
parent
96bb1cc625
commit
c324c8cb0a
@ -48,14 +48,3 @@ rbd-pvc-snapshot 6s
|
|||||||
|
|
||||||
To be sure everything is OK you can run `rbd snap ls [your-pvc-name]` inside one of your Ceph pod.
|
To be sure everything is OK you can run `rbd snap ls [your-pvc-name]` inside one of your Ceph pod.
|
||||||
|
|
||||||
## How to test RBD Block Volume
|
|
||||||
|
|
||||||
Before continuing, make sure you enabled the required [feature gate](https://kubernetes-csi.github.io/docs/raw-block.html#usage) in your Kubernetes cluster.
|
|
||||||
|
|
||||||
In order to create a PVC in Block mode, you need to specify `volumeMode: Block` in the PVC spec.
|
|
||||||
In the `examples/rbd` directory, you can test RBD block volume by running:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
kubectl create -f pvc-block.yaml
|
|
||||||
kubectl create -f pod-block.yaml
|
|
||||||
```
|
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Pod
|
|
||||||
metadata:
|
|
||||||
name: csirbd-block-pod
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: web-server
|
|
||||||
image: nginx
|
|
||||||
volumeDevices:
|
|
||||||
- name: data
|
|
||||||
devicePath: /dev/vda
|
|
||||||
volumes:
|
|
||||||
- name: data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: rbd-block-pvc
|
|
||||||
readOnly: false
|
|
@ -1,12 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: rbd-block-pvc
|
|
||||||
spec:
|
|
||||||
volumeMode: Block
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 1Gi
|
|
||||||
storageClassName: csi-rbd
|
|
Loading…
Reference in New Issue
Block a user