使用 helm3 时出现“警告:无效的身份验证配置文件”消息

问题描述 投票:0回答:1

我试图在我的 k8s 集群中使用 helm3。我在其中一个节点上安装了 helm3,这发生了。

helm erro message

WARNING: Invalid auth configuration file
github.com/docker/cli/cli/config/configfile.decodeAuth
        github.com/docker/[email protected]+incompatible/cli/config/configfile/file.go:297
github.com/docker/cli/cli/config/configfile.(*ConfigFile).LoadFromReader
        github.com/docker/[email protected]+incompatible/cli/config/configfile/file.go:128
github.com/docker/cli/cli/config.load
        github.com/docker/[email protected]+incompatible/cli/config/config.go:130
github.com/docker/cli/cli/config.Load
        github.com/docker/[email protected]+incompatible/cli/config/config.go:111
oras.land/oras-go/pkg/auth/docker.NewClientWithDockerFallback
        oras.land/[email protected]/pkg/auth/docker/client.go:86
helm.sh/helm/v3/pkg/registry.NewClient
        helm.sh/helm/v3/pkg/registry/client.go:83
main.newRootCmd
        helm.sh/helm/v3/cmd/helm/root.go:155
main.main
        helm.sh/helm/v3/cmd/helm/helm.go:66
runtime.main
        runtime/proc.go:250
runtime.goexit
        runtime/asm_amd64.s:1571
/root/.docker/config.json
github.com/docker/cli/cli/config.load
        github.com/docker/[email protected]+incompatible/cli/config/config.go:132
github.com/docker/cli/cli/config.Load
        github.com/docker/[email protected]+incompatible/cli/config/config.go:111
oras.land/oras-go/pkg/auth/docker.NewClientWithDockerFallback
        oras.land/[email protected]/pkg/auth/docker/client.go:86
helm.sh/helm/v3/pkg/registry.NewClient
        helm.sh/helm/v3/pkg/registry/client.go:83
main.newRootCmd
        helm.sh/helm/v3/cmd/helm/root.go:155
main.main
        helm.sh/helm/v3/cmd/helm/helm.go:66
runtime.main
        runtime/proc.go:250
runtime.goexit
        runtime/asm_amd64.s:1571

我尝试在另一个节点上安装 helm3,并且运行良好。这两个节点之间的区别是我在第一个节点上执行了

docker login
命令。
~/.docker/config.json
文件自动创建。我删除了第一个节点上的
config.json
文件,helm 工作正常。

我想知道如何让

docker login
helm
同时工作。我想知道为什么
docker login
helm
也在我的节点上发生冲突。

docker kubernetes kubernetes-helm
1个回答
0
投票

验证您是否有以下文件:/root/.docker/config.json,如果有,您可以重命名该文件并检查 helm 是否正常运行。

© www.soinside.com 2019 - 2024. All rights reserved.