Documentation

    PLEASE NOTE: This document applies to v0.9 version and not to the latest release v1.0

    Documentation for other releases can be found by using the version selector in the left bottom of any doc page.

    Minio Object Store CRD

    Minio object stores can be created and configured using the objectstores.minio.rook.io custom resource definition (CRD). Complete instructions can be found in the Rook Minio Documentation.

    Sample

    apiVersion: minio.rook.io/v1alpha1
    kind: ObjectStore
    metadata:
      name: my-store
      namespace: rook-minio
    spec:
      scope:
        nodeCount: 4
        # You can have multiple PersistentVolumeClaims in the volumeClaimTemplates list.
        # Be aware though that all PersistentVolumeClaim Templates will be used for each intance (see nodeCount).
        volumeClaimTemplates:
        - metadata:
            name: rook-minio-data1
          spec:
            accessModes: [ "ReadWriteOnce" ]
            # Uncomment and specify your StorageClass, otherwise
            # the cluster admin defined default StorageClass will be used.
            #storageClassName: "your-cluster-storageclass"
            resources:
              requests:
                storage: "8Gi"
        #- metadata:
        #    name: rook-minio-data2
        #  spec:
        #    accessModes: [ "ReadWriteOnce" ]
        #    # Uncomment and specify your StorageClass, otherwise
        #    # the cluster admin defined default StorageClass will be used.
        #    #storageClassName: "my-storage-class"
        #    resources:
        #      requests:
        #        storage: "8Gi"
      placement:
        tolerations:
        nodeAffinity:
        podAffinity:
        podAnyAffinity:
      credentials:
        name: access-keys
        namespace: rook-minio
      clusterDomain:
    

    Cluster Settings

    Minio Specific Settings

    The settings below are specific to Minio object stores:

    • credentials: This accepts the name and namespace strings of an existing Secret to specify the access credentials for the object store.
    • storageAmount: The size of the volume that will be mounted at the data directory.
    • clusterDomain: The local cluster domain for this cluster. This should be set if an alternative cluster domain is in use. If not set, then the default of cluster.local will be assumed. This field is needed to workaround https://github.com/minio/minio/issues/6775, and is expected to be removed in the future.

    Storage Scope

    Under the scope field, a StorageScopeSpec can be specified to influence the scope or boundaries of storage that the cluster will use for its underlying storage. These properties are currently supported:

    • nodeCount: The number of Minio instances to create. Some of these instances may be scheduled on the same nodes, but exactly this many instances will be created and included in the cluster.
    • volumeClaimTemplates: A list of one or more PersistentVolumeClaim templates to use for each Minio repliace. For an example of how the list should look like, please look at the above sample.