2
respostas

[Bug] Erro ao tentar habilitar o csi-hostpath-driver do minikube

Após executar o comando para habilitar o addon csi-hostpath-driver (comando abaixo), são exibidas várias mensagens de erro (principais logo abaixo e o csi-hostpath-driver permanece desabilitado.

Alguém saberia como faço para resolver este problema ?


minikube addons enable csi-hostpath-driver

 Verifying csi-hostpath-driver addon...

❌  Exiting due to MK_ADDON_ENABLE: enable failed: run callbacks: running callbacks: [sudo KUBECONFIG=/var/lib/minikube/kubeconfig /var/lib/minikube/binaries/v1.18.3/kubectl apply --force -f /etc/kubernetes/addons/rbac-external-attacher.yaml -f /etc/kubernetes/addons/rbac-hostpath.yaml -f /etc/kubernetes/addons/rbac-external-health-monitor-controller.yaml -f /etc/kubernetes/addons/rbac-external-provisioner.yaml -f /etc/kubernetes/addons/rbac-external-resizer.yaml -f /etc/kubernetes/addons/rbac-external-snapshotter.yaml -f /etc/kubernetes/addons/csi-hostpath-attacher.yaml -f /etc/kubernetes/addons/csi-hostpath-driverinfo.yaml -f /etc/kubernetes/addons/csi-hostpath-plugin.yaml -f /etc/kubernetes/addons/csi-hostpath-resizer.yaml -f /etc/kubernetes/addons/csi-hostpath-storageclass.yaml: Process exited with status 1

stderr:
error: error validating "/etc/kubernetes/addons/csi-hostpath-driverinfo.yaml": error validating data: [ValidationError(CSIDriver.spec): unknown field "fsGroupPolicy" in io.k8s.api.storage.v1.CSIDriverSpec, ValidationError(CSIDriver.spec): unknown field "storageCapacity" in io.k8s.api.storage.v1.CSIDriverSpec]; if you choose to ignore these errors, turn validation off with --validate=false

2 respostas

Bom dia. tentou rodar este comando: sudo KUBECONFIG=/var/lib/minikube/kubeconfig /var/lib/minikube/binaries/v1.18.3/kubectl apply --force -f /etc/kubernetes/addons/rbac-external-attacher.yaml -f /etc/kubernetes/addons/rbac-hostpath.yaml -f /etc/kubernetes/addons/rbac-external-health-monitor-controller.yaml -f /etc/kubernetes/addons/rbac-external-provisioner.yaml -f /etc/kubernetes/addons/rbac-external-resizer.yaml -f /etc/kubernetes/addons/rbac-external-snapshotter.yaml -f /etc/kubernetes/addons/csi-hostpath-attacher.yaml -f /etc/kubernetes/addons/csi-hostpath-driverinfo.yaml -f /etc/kubernetes/addons/csi-hostpath-plugin.yaml -f /etc/kubernetes/addons/csi-hostpath-resizer.yaml -f /etc/kubernetes/addons/csi-hostpath-storageclass.yaml: Process exited with status 1

Att., Fernando

Boa ideia Fernando, não tinha executado. Infelizmente executei e continuou dando erro, exibindo a mensagem abaixo :

The connection to the server localhost:8080 was refused - did you specify the right host or port?

Tentei executar novamente e deu o mesmo erro da abertura do chamado.

Estou achando que minha instalação Ubuntu (no WSL2) está com problema em relação ao minikube.

Se tiver alguma outra ideia, agradeço desde já.