This repository has been archived by the owner on Mar 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Adding persistent storage
robbaronbu edited this page Jun 7, 2017
·
17 revisions
UP https://github.com/CCI-MOC/moc-public/wiki/OpenShift
Ref:
-
More General https://docs.openshift.com/container-platform/3.5/install_config/persistent_storage/index.html For setting open stack user/passord/... https://docs.openshift.com/container-platform/3.5/install_config/configuring_openstack.html#install-config-configuring-openstack
-
Create storageclass (that is set as the default storageclass) for cinder
vi cinder-storageclass.yaml kind: StorageClass apiVersion: storage.k8s.io/v1beta1 metadata: name: cinder-storageclass annotations: storageclass.beta.kubernetes.io/is-default-class: "true" provisioner: kubernetes.io/cinder parameters: type: Ceph availability: nova
note: parameters:type: needs to match the type that is displayed in the volumes in horizon.
-
Create the storageclass from that file:
oc create -f cinder-storageclass.yaml
Note: cannot edit via:
oc edit storageclass cinder-storageclass
have to delete and then reload for changes to take place:
oc delete storageclass cinder-storageclass
...
-
On each node (including the master) - probably not needed.
systemctl stop atomic-openshift-node ovs-ofctl del-flows br0 -O OpenFlow13 systemctl start atomic-openshift-node