wtorek, lutego 26, 2019

OpenShift 3.11 local volume provisioner

Local volume provisioner from Quay.io in version 1.0.1 is not usable in OpenShift 3.11 due to API changes (required node affinity) while version 2+ simply doesn't recognize mount points properly.
There is a solution: local provisioner from Rancher Labs.
You just run: mkdir -p /opt/local-path-provisioner; kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/master/deploy/local-path-storage.yaml and you are done. If you set storageclass.kubernetes.io/is-default-class="true" pv claims with empty storage class will be handled by Rancher's local provisioner.