mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-10 00:10:20 +00:00
Merge pull request #330 from lxs137/csi-v0.3
rm example documents about unsupported block volume
This commit is contained in:
commit
dbe40eae2a
@ -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.
|
||||
|
||||
## 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