Open joymon opened 2 years ago
@joymon Thank you for reporting the issue!
https://github.com/kubernetes-sigs/secrets-store-csi-driver is the next generation of this flexvol solution/repo. Please use the secrets store csi driver as this solution is deprecated and the repository is going to be archived.
Describe the bug
I followed the tutorial given in the readme of this project to set up my local dev environment. But the pod is not getting started. Below is the error from kubectl describe pod.
Warning FailedMount 11m (x6 over 27m) kubelet Unable to attach or mount volumes: unmounted volumes=[azkvvolume], unattached volumes=[azkvvolume default-token-bkfjq]: timed out waiting for the condition Warning FailedMount 44s (x23 over 31m) kubelet MountVolume.SetUp failed for volume "azkvvolume" : invalid character '/' looking for beginning of value
One change I did apart from the tutorial is to change the hostPath volume of flex vol installer script as mentioned in #182 . I did this as I am running on Docker Desktop with K8s enabled.
Below is my yml volumeMounts:
Steps To Reproduce
Expected behavior
The pod should run and get the Azure KV secrets to be mounted as files
Key Vault FlexVolume version
As per the kv-flexvol-installer.yml , mcr.microsoft.com/k8s/flexvolume/keyvault-flexvolume:v0.0.17
Access mode: service principal or pod identity
service-principal
Kubernetes version
Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.2", GitCommit:"092fbfbf53427de67cac1e9fa54aaa09a28371d7", GitTreeState:"clean", BuildDate:"2021-06-16T12:59:11Z", GoVersion:"go1.16.5", Compiler:"gc", Platform:"windows/amd64"} Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.7", GitCommit:"1dd5338295409edcfff11505e7bb246f0d325d15", GitTreeState:"clean", BuildDate:"2021-01-13T13:15:20Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}
Environment
Additional context
Most of the issues here are talking about a log file located on the host machine at the below path
/var/log/kv-driver.log
Unfortunately, I am not able to locate that file in Docker Desktop running on WSL2. I tried to search using the WSL2 command but had no luck. This file may be having more details to save me.
I work for an enterprise and the latest CSI KeyVault driver is not yet approved there.