Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Helm3 uses minio to build its own warehouse

2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Helm3 repository changes In Helm 2, stable chart repositories are included by default. In Helm 3, no repositories are included by default. So the first thing you need to do is add a repository. The official graph repository will continue to receive patches for a limited time, but will no longer be included as the default repository in the Helm client.

MinIO is an object storage service based on Apache License v2.0. It is compatible with Amazon S3 cloud storage service interface and is ideal for storing large-capacity unstructured data such as images, videos, log files, backup data and container/virtual machine images, while an object file can be any size, ranging from a few kb to a maximum of 5T.

MinIO is a very lightweight service that can be easily integrated with other applications like NodeJS, Redis or MySQL.

3. Install minio server and client 3.1 Install server using container

docker pull minio/minio

docker run -p 9000:9000 minio/minio server /data

3.2 Install the server using binary

wget https://dl.min.io/server/minio/release/linux-amd64/minio

chmod +x minio

mkdir -p /chart

./ minio server /chart

Access Browser Access Address:

Get access key and secret key in startup log

If you see this page, it means that you have successfully logged in.

The server deployment is complete.

4. Install minio client 1. Install client using container

docker pull minio/mc

docker run minio/mc ls play

2. Install client using binary

wget https://dl.min.io/client/mc/release/linux-amd64/mc

chmod +x mc

./ mc

3. Connect to server

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

The access key and secret key when the server is started

4.MC shell uses aliases

ls=mc ls

cp=mc cp

cat=mc cat

mkdir=mc mb

pipe=mc pipe

find=mc find

5. create bucket

./ mc mb myminio/minio-helm-repo

6. Set bucket and objects anonymous access

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

7.helm Create an index.yaml file connected to the repository

mkdir /root/helm/repo

helm repo index helm/repo/

5. Connect helm to minio repository 1. Push index.yaml file to backend

./ mc cp helm/repo/index.yaml myminio/minio-helm-repo

2. Helm connection private warehouse

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

3. Update repo warehouse

helm repo update

4. View repo

helm repo list

5. View files in repo

./ mc ls myminio/minio-helm-repo

6. Log in to the server web interface to view

Perfect finish!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report