Using FlexVolume on local kubernetes cluster with docker-desktop

2/28/2020

I'm trying to use flex volumes for mounting file server and key vault, respectively: Git Repo and Git Repo

However, mounting any of them cause pods needing them to get stuck in ContainerCreating with warning messages about being unable to mount volumes due to a timeout. There is a step in the configuration of non-aks clusters that requires adjusting configs, which seems to be impossible when using a docker-provided Kubernetes server.

Is it possible to install flex volume driver on the docker Kubernetes server, as outlined here config kubelet service to enable FlexVolume driver and if so, how to access the config files? And if not, is it at all possible to mount flex volume volumes when working locally using docker-desktop Kubernetes?

I've deployed the same configuration to the AKS cluster and it's working correctly.

-- Daniel
docker
docker-desktop
kubernetes

0 Answers