問題描述
FAT[0000] 無效配置:未提供配置 (FATA[0000] invalid configuration: no configuration has been provided)
我在 Windows 筆記本電腦上運行我的 minikube 集群並嘗試設置 argo 工作流和 argo‑cli,我已經安裝了 argo‑workflow 但是當我嘗試執行 argo 命令時,它給了我一個錯誤:
FATA[0000] 無效配置:沒有提供配置
但是我看到 ‑‑kubeconfig 標誌可以用於在 argo 中配置此設置,我嘗試使用以下命令執行 ‑ ‑kubeconfig
argo version ‑‑kubeconfig "/mnt/c/Users/madur/.kube/config"
我仍然收到以下錯誤
FATA[0000] invalid configuration: [unable to read client‑cert /mnt/c/Users/madur/.kube/C:\Users\madur\.minikube\profiles\minikube\client.crt for minikube due to open /mnt/c/Users/madur/.kube/C:\Users\madur\.minikube\profiles\minikube\client.crt: no such file or directory, unable to read client‑key /mnt/c/Users/madur/.kube/C:\Users\madur\.minikube\profiles\minikube\client.key for minikube due to open /mnt/c/Users/madur/.kube/C:\Users\madur\.minikube\profiles\minikube\client.key: no such file or directory, unable to read certificate‑authority /mnt/c/Users/madur/.kube/C:\Users\madur\.minikube\ca.crt for minikube due to open /mnt/c/Users/madur/.kube/C:\Users\madur\.minikube\ca.crt: no such file or directory]
我的 kubeconfig 文件位於 /mnt/c/Users/madur/.kube/config 因為我在使用 WSL windows。
誰能幫我解決這個問題?
謝謝。
參考解法
方法 1:
When using WSL, you should use the Linux filesystem for files.
(by Madura Dissanayake、kazanaki)