github.com/alibaba/sealer@v0.8.6-0.20220430115802-37a2bdaa8173/applications/minio/README.md (about) 1 # Overview 2 3 This image chooses OpenEBS LocalPV as its persistence storage engine. 4 5 Components included in this image: 6 7 * 1 StatefulSet with 4 replicas for minio cluster which requests "50Gi" storage. 8 9 ## How to use it 10 11 MinIO® can be accessed via port 9000 on the following DNS name from within your cluster: 12 13 my-minio.minio-system.svc.cluster.local 14 15 To get your credentials run: 16 17 ``` 18 export ACCESS_KEY=$(kubectl get secret --namespace minio-system my-minio -o jsonpath="{.data.access-key}" | base64 19 --decode) 20 export SECRET_KEY=$(kubectl get secret --namespace minio-system my-minio -o jsonpath="{.data.secret-key}" | base64 21 --decode) 22 ``` 23 24 To connect to your MinIO® server using a client: 25 26 * Run a MinIO® Client pod and append the desired command (e.g. 'admin info'): 27 28 ``` 29 kubectl run --namespace minio-system my-minio-client \ 30 --rm --tty -i --restart='Never' \ 31 --env MINIO_SERVER_ACCESS_KEY=$ACCESS_KEY \ 32 --env MINIO_SERVER_SECRET_KEY=$SECRET_KEY \ 33 --env MINIO_SERVER_HOST=my-minio \ 34 --image docker.io/bitnami/minio-client:2021.7.27-debian-10-r7 -- admin info minio 35 ``` 36 37 To access the MinIO® web UI: 38 39 * Get the MinIO® URL: 40 41 ``` 42 echo "MinIO® web URL: http://127.0.0.1:9000/minio" 43 kubectl port-forward --namespace minio-system svc/my-minio 9000:9000 44 ``` 45 46 ## How to rebuild it use helm 47 48 Kubefile: 49 50 ```shell 51 FROM registry.cn-qingdao.aliyuncs.com/sealer-apps/openebs-localpv:2.11.0 52 # add helm repo and run helm install 53 RUN helm repo add bitnami https://charts.bitnami.com/bitnami 54 # set persistence.storageClass=local-hostpath, which is provided by base image openebs-localpv:2.11.0. 55 CMD helm install my-minio --create-namespace --namespace minio-system --set mode=distributed --set accessKey.password=minio --set secretKey.password=minio123 --set persistence.storageClass=local-hostpath --set persistence.enabled=true bitnami/minio --version 7.2.0 56 ``` 57 58 run below command to build it 59 60 ```shell 61 sealer build -t {Your Image Name} -f Kubefile -m cloud . 62 ``` 63 64 More parameters see [official document here](https://artifacthub.io/packages/helm/bitnami/minio).