From c324c8cb0a406ae4ef74b021a3d8cf2d2bd6d191 Mon Sep 17 00:00:00 2001 From: Chun Date: Sat, 20 Apr 2019 11:35:01 +0000 Subject: [PATCH] rm example documents about unsupported block volume --- examples/README.md | 11 ----------- examples/rbd/pod-block.yaml | 16 ---------------- examples/rbd/pvc-block.yaml | 12 ------------ 3 files changed, 39 deletions(-) delete mode 100644 examples/rbd/pod-block.yaml delete mode 100644 examples/rbd/pvc-block.yaml diff --git a/examples/README.md b/examples/README.md index 2763aaf16..29dbfcfe6 100644 --- a/examples/README.md +++ b/examples/README.md @@ -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 -``` diff --git a/examples/rbd/pod-block.yaml b/examples/rbd/pod-block.yaml deleted file mode 100644 index c3a54448d..000000000 --- a/examples/rbd/pod-block.yaml +++ /dev/null @@ -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 diff --git a/examples/rbd/pvc-block.yaml b/examples/rbd/pvc-block.yaml deleted file mode 100644 index dbd8324a2..000000000 --- a/examples/rbd/pvc-block.yaml +++ /dev/null @@ -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