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 47c5ef7
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion 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 Expand Up @@ -1312,7 +1347,6 @@ $ sudo systemctl restart docker
```



{{% capture whatsnext %}}
* Follow an example of [deploying WordPress and MySQL with Persistent Volumes](/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume/).
{{% /capture %}}

0 comments on commit 47c5ef7

Please sign in to comment.