From bb028dcc50fe36e67e10af7084f18690c62c5bd5 Mon Sep 17 00:00:00 2001 From: adisky Date: Wed, 6 Mar 2019 12:29:37 +0530 Subject: [PATCH] Add Cinder in Concepts Storage This commit adds section about cinder in-tree driver and how to enable CSI migration on cinder-intree driver --- content/en/docs/concepts/storage/volumes.md | 35 +++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/content/en/docs/concepts/storage/volumes.md b/content/en/docs/concepts/storage/volumes.md index fdda03b775185..0238993465a7a 100644 --- a/content/en/docs/concepts/storage/volumes.md +++ b/content/en/docs/concepts/storage/volumes.md @@ -93,6 +93,7 @@ Kubernetes supports several types of Volumes: * [secret](#secret) * [storageos](#storageos) * [vsphereVolume](#vspherevolume) + * [cinder](#cinder) We welcome additional contributions. @@ -1033,6 +1034,40 @@ spec: More examples can be found [here](https://github.com/kubernetes/examples/tree/master/staging/volumes/vsphere). +### cinder {#cinder} + +{{< note >}} +Prerequisite: Kubernetes with OpenStack Cloud Provider configured. For cloudprovider +configuration please refer [cloud provider openstack](https://kubernetes.io/docs/concepts/cluster-administration/cloud-providers/#openstack). +{{< /note >}} + +`cinder` is used to mount OpenStack Cinder Volume into your Pod. + +#### Cinder Volume Example configuration + +```yaml +apiVersion: v1 +kind: Pod +metadata: + name: test-cinder +spec: + containers: + - image: k8s.gcr.io/test-webserver + name: test-cinder-container + volumeMounts: + - mountPath: /test-cinder + name: test-volume + volumes: + - name: test-volume + # This OpenStack volume must already exist. + cinder: + volumeID: + fsType: ext4 +``` +{{< note >}} +CSI Migration: To enable CSI Migration for Cinder in-tree driver, `CSIMigration` and `CSIMigrationOpenStack` feature gates needs to be set true +{{< /note >}} + ## Using subPath