Harbor 登陆失败,用户名或者密码不正确。405 Not Allowed

问题如图:

在这里插入图片描述

如果是通过 helm chart 安装的 harbor,一般通过下面的方法可以解决:

# helm repo add harbor https://helm.goharbor.io
# helm fetch harbor/harbor --untar
# cd harbor
# sed -i 's/  type: ingress/  type: clusterIP/g' values.yaml
# sed -i 's/      commonName: ""/      commonName: "harbor"/g' values.yaml
# kubectl create ns harbor
# helm install harbor . -n harbor

这样安装以后,会在 harbor namespace 下产生一个 harbor service,使用该 svc 的 ClusterIP 访问 harbor,就可以正常登陆了。

# kubectl get svc -n harbor harbor

在这里插入图片描述

官方 Issue: https://github.com/goharbor/harbor-helm/issues/485

猜你喜欢

转载自blog.csdn.net/shida_csdn/article/details/115978215