Skip to content

Commit

Permalink
Add Cinder in Concepts Storage
Browse files Browse the repository at this point in the history
This commit adds section about cinder in-tree driver
and how to enable CSI migration on cinder-intree driver
  • Loading branch information
adisky committed Mar 6, 2019
1 parent 16b551c commit bb028dc
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions content/en/docs/concepts/storage/volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ Kubernetes supports several types of Volumes:
* [secret](#secret)
* [storageos](#storageos)
* [vsphereVolume](#vspherevolume)
* [cinder](#cinder)

We welcome additional contributions.

Expand Down Expand Up @@ -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: <volume-id>
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

Expand Down

0 comments on commit bb028dc

Please sign in to comment.