Azure / kubernetes-keyvault-flexvol

Azure keyvault integration with Kubernetes via a Flex Volume
MIT License
253 stars 84 forks source link

No logs found and no reasons found for timeout #136

Closed DigitalMediageek closed 4 years ago

DigitalMediageek commented 5 years ago

I'm getting the following error in POD status:

Unable to mount volumes for pod "xxx": timeout expired waiting for volumes to attach or mount for pod "xxx". list of unmounted volumes=[certificates]. list of unattached volumes=[xxx]

I've been through all tutorials and documentations and can't seem to find a reason nor do I find a log file on any available POD, pointing out why the volume fails. I'm using the following deployment:

  volumes:
    - name: certificates
      flexVolume:
        driver: "azure/kv"
        secretRef:
          name: xxx
        options:
          usepodidentity: "false"
          keyvaultname: "xxx"
          keyvaultobjectnames: "XXX"
          keyvaultobjecttypes: secret
          keyvaultobjectversions: "xxx"
          tenantid: "xx-xx"

Any ideas?

aramase commented 5 years ago

@DigitalMediageek What object are you trying to mount - secret/certificates/key? Since the keyvault-flexvolume is a binary that's loaded into each node, the logs are written to a file. You can find the node on which the pod is scheduled, ssh into the node and look at the logs at /var/log/kv-driver.log.

aramase commented 4 years ago

Closing this issue due to inactivity. Please feel free to reopen if you are still having issues.