k8s helm 私服chartmuseum minio s3 存储配置

1. 安装minio
使用docker 安装
参考项目
https://github.com/rongfengliang/mino-thumbor-openresty

备注: 因为是一个集成项目可能会有点复杂使用了docker-compsoe 以及图片缩略图
2. 配置
a. 配置s3 

mkdir -p ~/.aws

touch credentials

[default]
aws_access_key_id = 7V9OLKA3W322WMJIE09R
aws_secret_access_key = gvNkB10T1xcINQsBmsX1CbGjmfuQ5vv/L4Vo8o6H

备注:以上为我本机环境


b. 配置使用minio s3 存储

chartmuseum --debug --port=8089 \
  --storage="amazon" \
  --storage-amazon-bucket="helm" \
  --storage-amazon-prefix="" \
  --storage-amazon-region="eu-west-1" \
  --storage-amazon-endpoint="http://127.0.0.1:9091" 

c. 发布资源

helm repo add chartmuseum http://localhost:8089
helm push gateway/ chartmuseum

参考项目:

https://github.com/rongfengliang/helm-demo
参考界面
3. 参考资料
https://github.com/rongfengliang/helm-demo
https://github.com/rongfengliang/mino-thumbor-openresty
https://github.com/kubernetes-helm/chartmuseum

猜你喜欢

转载自www.cnblogs.com/rongfengliang/p/8862728.html
今日推荐