k8s helm private server chartmuseum minio s3 storage configuration

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

备注: 因为是一个集成项目可能会有点复杂使用了docker-compsoe 以及图片缩略图
2. Configuration
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
Reference interface
3. References
https://github.com/rongfengliang/helm-demo
https://github.com/rongfengliang/mino-thumbor-openresty
https://github.com/kubernetes-helm/chartmuseum

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324626416&siteId=291194637