on premise storage for kubernetes ?

on premise storage for kubernetes ?

What is MINIO ?

MinIO offers high-performance, S3 compatible object storage. Native to Kubernetes, MinIO is the only object storage suite available on every public cloud, every Kubernetes distribution, the private cloud and the edge. MinIO is software-defined and is 100% open source under GNU AGPL v

You can refer below documents to learn more about MinIO.

Let's do it hands on

1. Install minio client

wget https://github.com/minio/operator/releases/download/v4.4.16/kubectl-minio_4.4.16_linux_amd64 -O kubectl-mini

chmod +x kubectl-minio

mv kubectl-minio /usr/local/bin/o
        
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

2. Generate the minio operator CRDs manifest for deploy operator

No alt text provided for this image

3. Deploy the minio operator

No alt text provided for this image

4. Check the resources

No alt text provided for this image

5. For access to minio console use the proxy command

No alt text provided for this image

6. Copy the JWT and use it as the login credentials -> https://localhost:9090

No alt text provided for this image

7. Create a Tenant

No alt text provided for this image

Before create above Tenant you should deploy a local-path storage provisioner.

In here I am going to use Rancher local-path provisioner.

Please follow the below instruction to deploy Rancher local-path-storage provisioner https://github.com/rancher/local-path-provisioner

No alt text provided for this image

8. Deploy local-path storage provisioner.

No alt text provided for this image
No alt text provided for this image

9. Before create the Tenant, Check the PV & PVC and you can see nothing.

No alt text provided for this image

10. Now you can create a Tenant via the console

What is Erasure Code? https://docs.min.io/docs/minio-erasure-code-quickstart-guide.html

Erasure Code Calculator ? https://min.io/product/erasure-code-calculator


No alt text provided for this image

11. As the AWS credentials, You can download the access & secret key.

No alt text provided for this image

12. Now check the PV & PVC

No alt text provided for this image
No alt text provided for this image

13. Go to the each node and check inside the directories which you have configured on local-path-provisioner

No alt text provided for this image

14. Check the Tenant health from the console

No alt text provided for this image

15. Now you can create a bucket like AWS S3

No alt text provided for this image

16. After that you can configure the AWS credentials

No alt text provided for this image

List all bucket in your Tenant

  • aws --endpoint-url https://test-01-ha.storage.svc.cluster.local:9000 s3 ls --profile default

17. Now you can copy the files as you wish

No alt text provided for this image

18. You can check the inside on PVC provisioned by local-path provisioner on each nodes and the console

No alt text provided for this image
No alt text provided for this image

We are done it.......

要查看或添加评论,请登录

Upul Silva的更多文章

  • Importance of Kubernetes to data science

    Importance of Kubernetes to data science

    Kubernetes (K8s) is an open-source holder organization framework rapidly becoming fundamental for IT divisions as they…

  • Istio vs. LinkerD Facts you need to know

    Istio vs. LinkerD Facts you need to know

    In the Kubernetes networking space, the service mesh is a very recent development. A service mesh is a layer in your…

  • An Overview of Fission Framework

    An Overview of Fission Framework

    If you are familiar with Cloud Computing or dealing with Servers, you might have heard the term “Fission Framework.”…

社区洞察

其他会员也浏览了