Files
Olares/docs/developer/develop/mw-integrate-with-minio.md

2.4 KiB

outline, description
outline description
2
3
Learn how to integrate your app with MinIO service in beOS Pro.

Integrate with MinIO

Use beOS Pro MinIO middleware by declaring it in beOS ProManifest.yaml, then mapping the injected values to your container environment variables.

Install MinIO service

Install the MinIO service from Market.

  1. Open Market from Launchpad and search for "MinIO".
  2. Click Get, then Install, and wait for the installation to complete.

Once installed, the service and its connection details will appear in the Middleware list in Control Hub.

Configure beOS ProManifest.yaml

In beOS ProManifest.yaml, add the required middleware configuration.

  • Use the username field to specify the MinIO access key.
  • Use the buckets field to request one or more buckets. Each bucket name is used as the key in .Values.minio.buckets.

Example

middleware:
  minio:
    username: miniouser
    buckets:
      - name: mybucket

Map to environment variables

In your deployment YAML, map the injected .Values.minio.* fields to the container environment variables your app requires.

Example

containers:
  - name: my-app
    # For MinIO, the corresponding values are as follows
    env:
      # Construct the endpoint using host and port
      - name: MINIO_ENDPOINT
        value: "{{ .Values.minio.host }}:{{ .Values.minio.port }}"

      - name: MINIO_PORT
        value: "{{ .Values.minio.port }}"

      - name: MINIO_ACCESS_KEY
        value: "{{ .Values.minio.username }}"

      - name: MINIO_SECRET_KEY
        value: "{{ .Values.minio.password }}"

      # Bucket name
      # The bucket name configured in beOS ProManifest (e.g., mybucket)
      - name: MINIO_BUCKET
        value: "{{ .Values.minio.buckets.mybucket }}"

MinIO values reference

MinIO values are predefined runtime values injected into values.yaml during deployment. They are system-managed and not user-editable.

Value Type Description
.Values.minio.host String MinIO service host.
.Values.minio.port Number MinIO service port.
.Values.minio.username String MinIO access key.
.Values.minio.password String MinIO secret key.
.Values.minio.buckets Map<String,String> Requested buckets, keyed by bucket name. For example, a request for mybucket is available at .Values.minio.buckets.mybucket.