k3s/examples/volumes/cinder
NickrenREN f49fb20ee6 Add cinder volume examples
I can not find cinder examples,add in packages examples/volume and examples/persistent-volume-provisioning
2017-04-27 16:58:29 +08:00
..
README.md Add cinder volume examples 2017-04-27 16:58:29 +08:00
cinder-web.yaml Add cinder volume examples 2017-04-27 16:58:29 +08:00

README.md

This is a simple web server pod which serves HTML from an Cinder volume.

Create a volume in the same tenant and zone as your node.

Add your volume information in the pod description file cinder-web.yaml then create the pod:

  $ kubectl create -f examples/volumes/cinder/cinder-web.yaml

Add some data to the volume if is empty:

  $ echo  "Hello World" >& /var/lib/kubelet/plugins/kubernetes.io/cinder/mounts/{Volume ID}/index.html

You should now be able to query your web server:

  $ curl <Pod IP address>
  $ Hello World

Analytics