我已经用 Docker 运行了最新版本的 minio,并且可以通过浏览器正常访问它。然后我安装了 MC 客户端并用 MC 测试了 Minio,一切正常。但是当我使用 helm 添加 minio repo 时。我收到 403 错误。
[root@k8smaster01 helm-charts]# mc config host list
gcs
URL : https://storage.googleapis.com
AccessKey : YOUR-ACCESS-KEY-HERE
SecretKey : YOUR-SECRET-KEY-HERE
API : S3v2
Lookup : dns
local
URL : http://localhost:9000
AccessKey :
SecretKey :
API :
Lookup : auto
myminio
URL : http://172.16.5.182:9000
AccessKey : minioadmin
SecretKey : minioadmin
API : s3v4
Lookup : auto
play
URL : https://play.min.io
AccessKey : Q3AM3UQ867SPQQA43P2F
SecretKey : zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG
API : S3v4
Lookup : auto
s3
URL : https://s3.amazonaws.com
AccessKey : YOUR-ACCESS-KEY-HERE
SecretKey : YOUR-SECRET-KEY-HERE
API : S3v4
Lookup : dns
[root@k8smaster01 helm-charts]# mc ls myminio
[2020-06-16 18:10:01 CST] 0B minio-helm-repo/
[root@k8smaster01 helm-charts]# mc ls myminio/minio-helm-repo/
\[2020-06-16 18:17:20 CST] 76B index.yaml
[root@k8smaster01 helm-charts]# helm repo add minio-test-repo http://172.16.5.182:9000/minio-helm-repo
Error: looks like "http://172.16.5.182:9000/minio-helm-repo" is not a valid chart repository or cannot be reached: failed to fetch http://172.16.5.182:9000/minio-helm-repo/index.yaml : 403 Forbidden
[root@k8smaster01 helm-charts]#
[root@k8smaster01 helm-charts]# helm repo add minio-test-repo http://172.16.5.182:9000/minio-helm-repo --username minioadmin --password minioadmin
Error: looks like "http://172.16.5.182:9000/minio-helm-repo" is not a valid chart repository or cannot be reached: failed to fetch http://172.16.5.182:9000/minio-helm-repo/index.yaml : 400 Bad Request
[root@k8smaster01 helm-charts]#
我的 minio 版本是最新的(RELEASE.2020-06-14T18-32-17Z) 我的 mc 版本是 RELEASE.2020-05-28T23-43-36Z 我的 helm 版本是 version.BuildInfoVersion:"v3.2.3"
我怎样才能成功地将 repo 添加到 helm 中?