【发布时间】:2020-06-17 04:39:59
【问题描述】:
我已经用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 我的掌舵版本是 version.BuildInfoVersion:"v3.2.3"
如何成功地将 repo 添加到 helm?
【问题讨论】:
标签: kubernetes-helm minio helm-tls