openshift-evangelists / oc-cluster-wrapper

oc cluster up bash wrapper
Apache License 2.0
144 stars 72 forks source link

Create different class of storage #36

Open jorgemoralespou opened 7 years ago

jorgemoralespou commented 7 years ago

Using the new capabilities in 1.4/3.4 create some storage classes (local-recycle, local-retain, shared-recycle, shared-retain) so that the types of storage/PV you get will follow the requirements from the user.

Add commands to create-volume and create-shared-volume to add the appropriate annotation to your classes, and add a command to label your PVC with this annotations so they claim/bind the appropriate storage.

See https://docs.openshift.org/latest/install_config/storage_examples/storage_classes_legacy.html and https://docs.openshift.org/latest/install_config/persistent_storage/dynamically_provisioning_pvs.html#basic-spec-defintion