Zudoku
Guides

Minio

This guide shows you how to use MinIO, a High Performance Object Storage which is Open Source, Amazon S3 compatible, Kubernetes Native and is designed for cloud native workloads like AI.

To run it, follow these steps:

  1. Install the kraft CLI tool and a container runtime engine, e.g. Docker.

  2. Clone the examples repository and cd into the examples/minio/ directory:

TerminalCode
git clone https://github.com/kraftcloud/examples cd examples/minio/

Make sure to log into Unikraft Cloud by setting your token and a metro close to you. We use fra0 (Frankfurt, ๐Ÿ‡ฉ๐Ÿ‡ช) in this guide:

TerminalCode
# Set Unikraft Cloud access token export UKC_TOKEN=token # Set metro to Frankfurt, DE export UKC_METRO=fra0

When done, invoke the following command to deploy this application on Unikraft Cloud:

TerminalCode
kraft cloud deploy -p 443:9001/http+tls -p 9000:9000/tls -M 512 .

The output shows the instance URL and other details:

TerminalCode
[โ—] Deployed successfully! โ”‚ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ name: minio-w2my8 โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ uuid: 31e691ad-05a0-48b6-ad49-7f79da8e1754 โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ state: running โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ url: https://icy-bird-tregaga9.fra0.kraft.host โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ image: minio@sha256:ba4657c607495326b0e29b512fb33a4179cd1b2a15fbfdd3ccc6e66209a701dd โ”œโ”€โ”€โ”€โ”€โ”€ boot time: 73.65 ms โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ memory: 512 MiB โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€ service: icy-bird-tregaga9 โ”œโ”€โ”€ private fqdn: minio-w2my8.internal โ”œโ”€โ”€โ”€โ”€ private ip: 172.16.6.4 โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ args: /usr/bin/minio server --address 0.0.0.0:9000 --console-address 0.0.0.0:9001 /data

In this case, the instance name is minio-w2my8 and the URL is https://icy-bird-tregaga9.fra0.kraft.host. They are different for each run.

To test, simply point your browser at the URL. The default account/password are minioadmin/minioadmin.

At any point in time, you can list information about the instance:

TerminalCode
kraft cloud instance list
Code
NAME FQDN STATE CREATED AT IMAGE MEMORY ARGS BOOT TIME minio-w2my8 icy-bird-tregaga9.fra0.kraft.c... running 1 minute ago minio@sha256:ba4657c607495326b0e29b51... 512 MiB /usr/bin/minio server --addres... 73651us

When done, you can remove the instance:

TerminalCode
kraft cloud instance remove minio-w2my8

Customize your Application

To customize the application, update the files in the repository, listed below:

  • Kraftfile: the Unikraft Cloud specification, including command-line arguments
  • Dockerfile: In case you need to add files to your instance's rootfs

Learn More

Use the --help option for detailed information on using Unikraft Cloud:

TerminalCode
kraft cloud --help

Or visit the CLI Reference.

Last modified on