Skip to content

Dynamic Provisioning of Kubernetes HostPath Volumes, this expanded version allows the use of multiple different storagepaths

Notifications You must be signed in to change notification settings

dennismaxjung/expanded-hostpath-provisioner

 
 

Repository files navigation

Hostpath provisioner

This is the demo code in the kubernetes-incubator-Project, along with the modifications proposed here.

Build and Upload to DockerHub

This is a go project so we need to work through its dependencies.

We first install golang and make sure /snap/bin is in you path

sudo snap install --classic go

Set the GOPATH and the rest of environment variables with something similar to this:

export GOPATH=$HOME/go
export GOBIN=$GOPATH/bin
export PATH=$GOBIN:$PATH
mkdir -p $GOBIN

Dependency management is done through glide

curl https://glide.sh/get | sh

We also need docker to create and push our image on Docker hub

sudo apt-get install docker.io
sudo usermod -a -G docker $USER

At this point we are able to get the source code and compile it

go get github.com/juju-solutions/hostpath-provisioner
cd $GOPATH/src/github.com/juju-solutions/hostpath-provisioner
make

To build and push the docker image you need to first login in as cdkbot

docker login
make image
make push

About

Dynamic Provisioning of Kubernetes HostPath Volumes, this expanded version allows the use of multiple different storagepaths

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages

  • Go 80.5%
  • Makefile 19.5%