1, helm3 repository changes
In Helm 2, the default table storage library comprising stabilized. In Helm 3, by default it does not contain any repository. So the first thing to do is to add a repository. Official Charts repository will continue to receive patches for a limited period of time, but will no longer be included as the default repository in Helm client.
2, minio Introduction
MinIO is a very lightweight service that makes it simple and combined with other applications, similar NodeJS, Redis or MySQL.
3, installation and client service minio
3.1 Installation of the end use of the container
docker pull minio/minio
docker run -p 9000:9000 minio/minio server /data
3.2 server using the binary installation
wget https://dl.min.io/server/minio/release/linux-amd64/minio
chmod +x minio
mkdir -p /chart
./minio server /chart
Access Browser Access Address:
Obtain access key and secret key in the startup log
See this page indicates a successful landing
At this point the server deployment is complete.
4, the client installation minio
1. Client container is mounted
docker pull minio/mc
docker run minio/mc ls play
2. Use the binary install the client
wget https://dl.min.io/client/mc/release/linux-amd64/mc
chmod +x mc
./mc
3.连接至服务端
./mc config host add myminio http://172.17.0.1:9000 XH2LCA4AJIP52RDB4P5M CDDCuoS2FNsdW8S0bodkcs2729N+TH5lFov+rrT3
服务端启动时候的access key和secret key
4.mc的shell使用别名
ls=mc ls
cp=mc cp
cat=mc cat
mkdir=mc mb
pipe=mc pipe
find=mc find
5.创建bucket
./mc mb myminio/minio-helm-repo
6.设置bucket和objects匿名访问
./mc policy set download myminio/minio-helm-repo
7.helm创建与仓库连接的index.yaml文件
mkdir /root/helm/repo helm repo index helm/repo/
5、helm与minio仓库进行连接
1.将index.yaml文件推送到backet中去
./mc cp helm/repo/index.yaml myminio/minio-helm-repo
2.helm连接私仓
helm repo add fengnan http://192.168.0.119:9000/minio-helm-repo
3.更新repo仓库
helm repo update
4.查看repo
helm repo list
5.查看repo中的文件
./mc myminio ls / mini-rap helm
6. Log server web interface
Perfect ending!