Git Product home page Git Product logo

hostpath-provisioner-controller's Introduction

Kubernetes hostpath provisioner controller

Introduction

hostpathctl is a batch script to manage Kubernetes persistent volumes provisioner using a hostpath configuration.

hostpathctl automates creation of Role-based User Access Control, storage class and provisioner pod.

It was developed by studying the minikube default-storageclass and storage-provisioner addons.

It shall be usefull for testing purpose.

It is free software licensed under the Apache Licence version 2.

Quick start

Create hostpath storageclass

To create the hostpath storageclass with its provisioner.

  1. create the storage directory on cluster node.
mkdir -p /tmp/hostpath
  1. execute the hostpathctl create command
hostpathctl create hostpath -n kube-system

Delete hostpath storageclass

To delete the hostpath storageclass with its provisioner.

  1. execute the hostpathctl delete command
hostpathctl delete hostpath -n kube-system
  1. Optionally remove the directory on cluster node.
rm -Rf /tmp/hostpath

Usage

You can change somes parameters using environment variables or command-line options.

Usage: hostpathctl <command> [options] <storage>

Available Commands:
  create  Create a storageclass and its provisioner
  delete  Delete a storageclass and its provisioner

Options:
    -a, --account=<storage>-account   indicate the security account allowed to create persistent volumes
    -h, --help                        print this help message
    -i, --image                       indicate the pod provider image
    -n, --namespace=default           indicate the target namespace
    -p, --path=/tmp/<storage>         indicate the path where persistent volumes will be provisioned on cluster node. It must already exists.
    -s, --service=<storage>-provider  indicate the pod provider name
    --default                         annotate the StorageClass as default
    --dry-run='none'                  must be "none", "server", or "client".

hostpath-provisioner-controller's People

Contributors

damien-abos avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.