From 10b9331149e46e99018f9379cd84ba31146d6d13 Mon Sep 17 00:00:00 2001 From: Yurii Havrylko Date: Wed, 3 Jan 2024 23:49:39 +0100 Subject: [PATCH] minio setup options --- README.md | 26 ++++++++++++++++++++++++++ deployment/minio.yml | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 deployment/minio.yml diff --git a/README.md b/README.md index a67ba1f..4ded965 100644 --- a/README.md +++ b/README.md @@ -22,3 +22,29 @@ DH Images: Works on push to master/feature* ![Alt text](assets/actions.png) + +### Minio setup +Mac/Local +``` +brew install minio/stable/minio + +minio server --console-address :9001 ~/minio # path to persistent local storage + run on custom port +``` + +Docker + +``` +docker run \ + -p 9002:9002 \ + --name minio \ + -v ~/minio:/data \ + -e "MINIO_ROOT_USER=ROOTNAME" \ + -e "MINIO_ROOT_PASSWORD=CHANGEME123" \ + quay.io/minio/minio server /data --console-address ":9002" +``` + +Kubernetes + +``` +kubectl create -f deployment/minio.yml +``` diff --git a/deployment/minio.yml b/deployment/minio.yml new file mode 100644 index 0000000..7de1ec6 --- /dev/null +++ b/deployment/minio.yml @@ -0,0 +1,38 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: minio-deployment +spec: + selector: + matchLabels: + app: minio + strategy: + type: Recreate + template: + metadata: + labels: + # Label is used as selector in the service. + app: minio + spec: + volumes: + - name: storage + persistentVolumeClaim: + claimName: minio-pv-claim + containers: + - name: minio + image: quay.io/minio/minio:latest + args: + - server + - /storage + env: + # Minio access key and secret key + - name: MINIO_ACCESS_KEY + value: "minio" + - name: MINIO_SECRET_KEY + value: "minio123" + ports: + - containerPort: 9003 + hostPort: 9003 + volumeMounts: + - name: storage + mountPath: "/storage"