vultr / vultr-csi

Container Storage Interface (CSI) Driver for Vultr Block Storage
Apache License 2.0
40 stars 17 forks source link

[BUG] - Provisioning Failed/Unauthorized IP addres #94

Closed irediaes closed 2 years ago

irediaes commented 2 years ago

Describe the bug The pvc remains pending after deployment. Logs showing 401 error when I run kubectl logs csi-vultr-controller-0 -n kube-system

Screenshot 2022-10-17 at 07 24 34

To Reproduce Steps to reproduce the behavior:

  1. Deploy VKE cluster
  2. kubectl apply -f https://raw.githubusercontent.com/vultr/vultr-csi/master/docs/releases/latest.yml
  3. Deploy pvc
    apiVersion: v1
    kind: PersistentVolumeClaim
    metadata:
    name: csi-pvc
    spec:
    accessModes:
    - ReadWriteOnce
    resources:
    requests:
      storage: 10Gi
    storageClassName: vultr-block-storage

Expected behavior No error, pvc deployed and running.

Desktop (please complete the following information where applicable:


Add any other context about the problem here.

irediaes commented 2 years ago

--allow-privileged must be enabled for the API server and kubelet

from the vultr-csi requirements

@ddymko

Please, how can I enable this when I don't have access to the VKE control plane?

irediaes commented 2 years ago

Solved:

For future reference for anyone facing same errors:

vultr-csi are automatically deployed along with VKE. vultr-csi secret are also automatically deployed. Following the example on vultr-csi git repo will lead to authentication error.

You don't need to do most of the stuffs on this tutorial page if you're using VKE

Also check that vultr-block-storage is available in your location else it will throw an error {"error":"Unable to add block storage: Unable to find a block storage cluster in that location.","status":400}. Use vultr-block-storage-hdd instead if facing this error.