Skip to content

minio_quick

Aletibazo edited this page May 31, 2024 · 2 revisions

Quick Start

The default template will instantiate a Single-Node Single-Drive deployment, recommended only for local testing and evaluation or small-scale data workloads that do not have availability or performance requirements.

Steps to deploy a Single-Node instance:

  1. Download the MinIO appliance from the OpenNebula Marketplace. This will download the VM template and the image for the OS.
    $ onemarketapp export 'Service MinIO' MinIO --datastore default
    
  2. Create empty datablock for storage disks
    $ oneimage create -d default --name minio-disk --prefix vd --size 5G --type Datablock
    
  3. Adjust the VM template as desired (i.e. CPU, MEMORY, number of disks).
  4. Instantiate MinIO template:
    $ onetemplate instantiate MinIO
    
    This will prompt the user for the contextualization parameters.
  5. Attach a new NIC to the VM:
    $ onevm nic-atttach VM_ID --network VNET_ID
    
  6. Access your new MinIO instance on https://vm-ip-address:9001 and login with the defined user and password.

To instantiate a Single-Node Multi-Drive deployment instead, it is necessary to add extra disks to the template file. A template for a Single-Node Multi-Drive with 4 disks for MinIO storage should look like this:

  CONTEXT=[
    NETWORK="YES",
    ONEAPP_MINIO_HOSTNAME="$ONEAPP_MINIO_HOSTNAME",
    ONEAPP_MINIO_OPTS="$ONEAPP_MINIO_OPTS",
    ONEAPP_MINIO_ROOT_PASSWORD="$ONEAPP_MINIO_ROOT_PASSWORD",
    ONEAPP_MINIO_ROOT_USER="$ONEAPP_MINIO_ROOT_USER",
    ONEAPP_MINIO_TLS_CERT="$ONEAPP_MINIO_TLS_CERT",
    ONEAPP_MINIO_TLS_KEY="$ONEAPP_MINIO_TLS_KEY",
    SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]" ]
  CPU="1"
  DISK=[
    DEV_PREFIX="vd",
    IMAGE="service-MinIO",
    IMAGE_UNAME="oneadmin" ]
  DISK=[
    DEV_PREFIX="vd",
    IMAGE="minio-disk",
    IMAGE_UNAME="oneadmin" ]
  DISK=[
    DEV_PREFIX="vd",
    IMAGE="minio-disk",
    IMAGE_UNAME="oneadmin" ]
  DISK=[
    DEV_PREFIX="vd",
    IMAGE="minio-disk",
    IMAGE_UNAME="oneadmin" ]
  DISK=[
    DEV_PREFIX="vd",
    IMAGE="minio-disk",
    IMAGE_UNAME="oneadmin" ]
  GRAPHICS=[
    LISTEN="0.0.0.0",
    TYPE="VNC" ]
  HOT_RESIZE=[
    CPU_HOT_ADD_ENABLED="NO",
    MEMORY_HOT_ADD_ENABLED="NO" ]
  HYPERVISOR="kvm"
  LOGO="images/logos/minio.png"
  MEMORY="2048"
  MEMORY_UNIT_COST="MB"
  USER_INPUTS=[
    ONEAPP_MINIO_HOSTNAME="O|text|MinIO hostname for TLS certificate| |localhost,minio-*.example.net",
    ONEAPP_MINIO_OPTS="O|text|Additional commandline options for MinIO server| |--console-address :9001",
    ONEAPP_MINIO_ROOT_PASSWORD="O|password|MinIO root user password for MinIO server",
    ONEAPP_MINIO_ROOT_USER="O|text|MinIO root user for MinIO server| |myminioadmin",
    ONEAPP_MINIO_TLS_CERT="O|text64|MinIO TLS certificate (.crt)| |",
    ONEAPP_MINIO_TLS_KEY="O|text64|MinIO TLS key (.key)| |" ]

Next: MinIO Features and usage

Clone this wiki locally