Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hostpath: Add block volume support #6

Merged

Commits on Feb 25, 2019

  1. hostpath: Add block volume support

    This change adds block volume support to hostpath driver.
    
    When a block volume request is received, a block file is created at
    provisionRoot with the requested capacity as size and a loop device is
    created associated with the block file.
    
    At node publish, a bind mount of the loop device is created at the
    publish target path.
    
    At node unpublish, the target path is unmounted and deleted.
    
    At volume delete, loop device is disassociated and the block file is
    deleted.
    
    Add plugins-dir to hostpath plugin daemonset
    The volume publish target path for block devices are usually under
    /var/lib/kubelet/plugins directory. Hence, adding plugins directory to
    the pod volumes with bidirectional mount propagation.
    
    Run the plugin as privileged to use loop devices
    In order to share loop devices with the host, the plugin container must
    be run as a privileged container.
    darkowlzz committed Feb 25, 2019
    Configuration menu
    Copy the full SHA
    ea76c5b View commit details
    Browse the repository at this point in the history