-
Bogdan Dobrelya authored
Required for an RPM package builds with the contrib/ansible-kubespray.spec Signed-off-by:
Bogdan Dobrelya <bogdando@mail.ru>
Bogdan Dobrelya authoredRequired for an RPM package builds with the contrib/ansible-kubespray.spec Signed-off-by:
Bogdan Dobrelya <bogdando@mail.ru>
Local Path Provisioner
Overview
Local Path Provisioner provides a way for the Kubernetes users to utilize the local storage in each node. Based on the user configuration, the Local Path Provisioner will create either hostPath
or local
based persistent volume on the node automatically. It utilizes the features introduced by Kubernetes Local Persistent Volume feature, but makes it a simpler solution than the built-in local
volume feature in Kubernetes.
Compare to built-in Local Persistent Volume feature in Kubernetes
Pros
Dynamic provisioning the volume using hostPath or local.
- Currently the Kubernetes Local Volume provisioner cannot do dynamic provisioning for the local volumes.
- Local based persistent volumes are an experimental feature (example usage).
Cons
- No support for the volume capacity limit currently.
- The capacity limit will be ignored for now.
Requirement
Kubernetes v1.12+.
Deployment
Installation
In this setup, the directory /opt/local-path-provisioner
will be used across all the nodes as the path for provisioning (a.k.a, store the persistent volume data). The provisioner will be installed in local-path-storage
namespace by default.
- Stable
kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/v0.0.27/deploy/local-path-storage.yaml
- Development
kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/master/deploy/local-path-storage.yaml
Or, use kustomize
to deploy.