Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
blobfuse Update README.md Sep 19, 2019
dysk Update README.md Jun 11, 2019
keyvault add link to keyvault volume Nov 5, 2018
smb Update README.md Sep 19, 2019
README.md Update README.md Jun 11, 2019

README.md

kubernetes FlexVolume driver on Azure

This directory contains all kubernetes FlexVolume drivers on azure:

FlexVolume driver About
blobfuse This driver allows Kubernetes to access virtual filesystem backed by the Azure Blob storage.
smb This driver allows Kubernetes to access SMB server by using CIFS/SMB protocol.

config kubelet service to enable FlexVolume driver

Note: skip this step in AKS or from acs-engine v0.12.0

  • specify volume-plugin-dir in kubelet service config

append following two lines seperately into /etc/systemd/system/kubelet.service file

  --volume=/etc/kubernetes/volumeplugins:/etc/kubernetes/volumeplugins:rw \
        --volume-plugin-dir=/etc/kubernetes/volumeplugins \
sudo vi /etc/systemd/system/kubelet.service
...
ExecStart=/usr/bin/docker run \
  --net=host \
  ...
  --volume=/etc/kubernetes/volumeplugins:/etc/kubernetes/volumeplugins:rw \
    ${KUBELET_IMAGE} \
      /hyperkube kubelet \
        --require-kubeconfig \
        --v=2 \
	...
      --volume-plugin-dir=/etc/kubernetes/volumeplugins \
        $KUBELET_CONFIG $KUBELET_OPTS \
        ${KUBELET_REGISTER_NODE} ${KUBELET_REGISTER_WITH_TAINTS}
...

sudo systemctl daemon-reload
sudo systemctl restart kubelet

Note:

  • /etc/kubernetes/volumeplugins has already been the default flexvolume plugin directory in acs-engine (starting from v0.12.0)
  • Flexvolume is GA from Kubernetes 1.8 release, v1.7 is depreciated since it does not support Dynamic Plugin Discovery.
You can’t perform that action at this time.