Skip to content

Latest commit

 

History

History
79 lines (59 loc) · 2.15 KB

File metadata and controls

79 lines (59 loc) · 2.15 KB

Deployment

This helm chart will deploy MinIO for the usage of the SWOOP API onto a Kubernetes cluster.

To install the chart, do:

helm repo add e84 https://element84.github.io/filmdrop-k8s-helm-charts

and

helm install minio e84/minio

Once the chart has been deployed, you should see at least 1 deployment for minio.

MinIO Deployment



In order to start using the services used by this helm chart, you will need to port-forward minio onto localhost port 9000 & 9001.

Port forwarding MinIO



Setting up MinIO CLI

Install First the MinIO client by running:

brew install minio/stable/mc

Then set the MinIO alias, find the ACCESS_KEY and SECRET_KEY by quering the Helm values

export MINIO_ACCESS_KEY=`helm get values minio -a -o json | jq -r .service.accessKeyId | base64 --decode`
export MINIO_SECRET_KEY=`helm get values minio -a -o json | jq -r .service.secretAccessKey | base64 --decode`
mc alias set minio http://127.0.0.1:9000 $MINIO_ACCESS_KEY $MINIO_SECRET_KEY

Test MinIO connection by running:

$ mc admin info minio

●  127.0.0.1:9000
   Uptime: 4 minutes
   Version: 2023-06-02T23:17:26Z
   Network: 1/1 OK
   Drives: 1/1 OK
   Pool: 1

Pools:
   1st, Erasure sets: 1, Drives per erasure set: 1

0 B Used, 1 Bucket, 0 Objects
1 drive online, 0 drives offline

Log into MinIO Dashboard

Retrieve username by running:

helm get values minio -a -o json | jq -r .service.accessKeyId | base64 --decode

Retrieve password by running:

helm get values minio -a -o json | jq -r .service.secretAccessKey | base64 --decode

Open MinIO dashboard by opening your browser on http://localhost:9001/ and logging into MinIO using the credentials above:

SWOOP MinIO



Uninstall minio

To uninstall the release, do helm uninstall minio.