rm example documents about unsupported block volume

This commit is contained in:
Chun 2019-04-20 11:35:01 +00:00
parent 96bb1cc625
commit c324c8cb0a
3 changed files with 0 additions and 39 deletions

View File

@ -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
```

View File

@ -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

View File

@ -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