0

我最近通过gcloudvia安装apt install gcloud-sdk。所以现在gcloud位于/user/bin/glcoud. 我更新了我的~/.kube/config

xetra11@pop-os:~$ cat ~/.kube/config | grep cmd        
        cmd-args: config config-helper --format=json
        cmd-path: /user/bin/gcloud
        cmd-args: config config-helper --format=json
        cmd-path: /user/bin/gcloud
        cmd-args: config config-helper --format=json
        cmd-path: /user/bin/gcloud

但是当我helm现在运行它时找不到它:

xetra11@pop-os:~$ helm upgrade --install --debug --dry-run ingress-dev -f ingress/values-dev.yaml ingress
Error: Get https://31.2.3.4/api/v1/namespaces/kube-system/pods?labelSelector=app%3Dhelm%2Cname%3Dtiller: error executing access token command "/user/bin/gcloud config config-helper --format=json": err=fork/exec /user/bin/gcloud: no such file or directory output= stderr=

由于同样k9s的问题,也不再工作了。知道这里出了什么问题吗?

4

1 回答 1

1

我清除了现有的 kubectl 配置(通过How do I delete clusters and contexts from kubectl config?)并通过gcloud. 那解决了它。

正确的道路是cmd-path: /usr/lib/google-cloud-sdk/bin/gcloud那时。不知道这个存在。

于 2020-04-14T11:26:28.533 回答