Skip to content

Integrate with MinIO

Use Olares MinIO middleware by declaring it in OlaresManifest.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 OlaresManifest.yaml

In OlaresManifest.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

yaml
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

yaml
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 OlaresManifest (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.

ValueTypeDescription
.Values.minio.hostStringMinIO service host.
.Values.minio.portNumberMinIO service port.
.Values.minio.usernameStringMinIO access key.
.Values.minio.passwordStringMinIO secret key.
.Values.minio.bucketsMap<String,String>Requested buckets, keyed by bucket name. For example, a request for mybucket is available at .Values.minio.buckets.mybucket.