helm3 use minio self storage

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 based on Apache License v2.0 open source license object storage service. It is compatible with Amazon S3 cloud storage service interface is very suitable for a large-capacity storage unstructured data, such as pictures, videos, log files, and backup data container / virtual machine image and the like, and an object file can be any size, from a few 5T kb to the maximum range.

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

image-20191130171343371.png

Access Browser Access Address:

image-20191130171714286.png

Obtain access key and secret key in the startup log

image-20191130171906111.png

See this page indicates a successful landing

image-20191130172024345.png

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

image-20191130172613972.png

    3.连接至服务端

./mc config host add myminio http://172.17.0.1:9000 XH2LCA4AJIP52RDB4P5M CDDCuoS2FNsdW8S0bodkcs2729N+TH5lFov+rrT3

image-20191130172936479.png

服务端启动时候的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

image-20191130173348740.png

    6.设置bucket和objects匿名访问

./mc policy set download myminio/minio-helm-repo

image-20191130173746863.png

    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

image-20191130174336894.png

    2.helm连接私仓

helm repo add fengnan http://192.168.0.119:9000/minio-helm-repo

image-20191130174456212.png

    3.更新repo仓库

helm repo update

image-20191130174603525.png

    4.查看repo

helm repo list

image-20191130174649812.png

    5.查看repo中的文件
./mc myminio ls / mini-rap helm

image-20191130174754911.png

    6. Log server web interface

image-20191130174845497.png

Perfect ending!



Guess you like

Origin blog.51cto.com/14268033/2455006