Skip to content
Snippets Groups Projects
Select Git revision
  • eee1ba1028c8d439d0f5d84243ba6dae612a554c
  • main default protected
  • move-everything-to-backend-folder
  • feat/apps-development
  • 0.4.1
  • 0.4.0
  • 0.3.1
  • 0.3.0
  • 0.2.10
  • 0.2.9
  • 0.2.8
  • 0.2.7
  • 0.2.6
  • 0.2.5
  • 0.2.4
  • 0.2.3
  • 0.2.2
  • 0.2.1
  • 0.2.0
  • 0.1.4
  • 0.1.3
  • 0.1.2
  • 0.1.1
  • 0.1.0
24 results

.gitlab-ci.yml

Blame
  • README.md 7.87 KiB

    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 hostPath based persistent volume on the node automatically. It utilizes the features introduced by Kubernetes Local Persistent Volume feature, but make 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 host path.

    Cons

    1. No support for the volume capacity limit currently.
      1. The capacity limit will be ignored for now.
    2. Only support hostPath

    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.

    kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/master/deploy/local-path-storage.yaml

    After installation, you should see something like the following:

    $ kubectl -n local-path-storage get pod
    NAME                                     READY     STATUS    RESTARTS   AGE
    local-path-provisioner-d744ccf98-xfcbk   1/1       Running   0          7m

    Check and follow the provisioner log using:

    $ kubectl -n local-path-storage logs -f local-path-provisioner-d744ccf98-xfcbk

    Usage