kubernetes-local-volume

module
v0.0.0-...-7c2d981 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2022 License: Apache-2.0

README

Kubernetes Local Volume CSI Plugin

Overview

Local Volume CSI Plugins implement an interface between CSI enabled Container Orchestrator. It allows dynamically provision Local Disk volumes and attach it to workloads.

Architectural Design

Architectural Design

LVM Design

LVM Design

Quick Start

Deploy
  1. Clone the project on your Kubernetes cluster master node:
$ git clone https://github.com/kubernetes-local-volume/kubernetes-local-volume.git
$ cd kubernetes-local-volume
  1. To deploy the Plugin on your Kubernetes cluster, please run the following script:
$ make deploy
  1. Use command kubectl get pods -n kube-systemto check Local Volume Plugin status like:
NAMESPACE       NAME                                      READY   STATUS      RESTARTS   AGE
kube-system     local-volume-csi-node-server-cfgdx        3/3     Running     0          29m
kube-system     local-volume-csi-node-server-d4r9t        3/3     Running     0          29m
kube-system     local-volume-csi-node-server-lbk2l        3/3     Running     0          29m
kube-system     local-volume-csi-provisioner-0            1/1     Running     0          29m
kube-system     local-volume-scheduler-5db76cc95f-tmt6n   1/1     Running     0          29m
  1. Run example
$ make start-test

$ kubectl get pods
NAMESPACE       NAME                                      READY   STATUS      RESTARTS   AGE
default         deployment-lvm-6795459b9b-dp8xx           1/1     Running     0          10m

$ kubectl get pvc
NAME                   STATUS   VOLUME                                              CAPACITY   ACCESS MODES   STORAGECLASS       AGE
local-volume-csi-pvc   Bound    local-volume-19eb5214-a003-11ea-bf25-fa163ecf44f1   1Gi        RWO            local-volume-csi   12m

$ kubectl get pv
NAME                                                CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS   CLAIM                          STORAGECLASS       REASON   AGE
local-volume-19eb5214-a003-11ea-bf25-fa163ecf44f1   1Gi        RWO            Delete           Bound    default/local-volume-csi-pvc   local-volume-csi            13m
  1. undeploy
$ make undeploy

Directories

Path Synopsis
cmd
pkg
apis/storage/v1alpha1
+k8s:deepcopy-gen=package +groupName=local.volume.storage
+k8s:deepcopy-gen=package +groupName=local.volume.storage
client/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
client/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
client/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/clientset/versioned/typed/storage/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/storage/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL