Skip to content
Dynamic local volume provisioner
Branch: master
Clone or download
Latest commit 2a9165d Mar 3, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd v0.0.1 Feb 20, 2019
deployment
doc agent Feb 13, 2019
examples v0.0.1 Feb 20, 2019
img
pkg
.gitignore
README.md
build-agent.sh
build-scheduler.sh v0.0.1 Feb 20, 2019

README.md

Yummy

Yummy is a dynamic local volume provisioner based on lvm. It creates lvm according to pvc and mount it to node, thus the external storage local volume provisioner will detect the new mount point and create pv.

Demo

Arch

arch

build

scheduler

./build-scheduler.sh

Output file in cmd/scheduler

agent

./build-agent.sh

Output file in cmd/agent

run

run scheduler as master

#!/bin/bash
KUBECONFIG=/home/silenceshell/.kube/config ./cmd/scheduler/scheduler

run agent on all nodes who provision lvm

1 create agent config: /etc/yummy/config/agentConfigMap

agentConfigMap:
  volumeGroup: volume-group1
  mountDir: /data/local

volumeGroup is the vg of this node; mountDir is the dir that new lv will be mounted.

2 run agent

#!/bin/bash
KUBECONFIG=/home/silenceshell/.kube/config MY_NODE_NAME=ubuntu-2  ./cmd/scheduler/agent

Known issue

Pod should be deleted first, or the related lv maybe count not be removed. Will fix it later.

You can’t perform that action at this time.