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 works for cloud native workloads like AI.

To run it, follow these steps:

  1. Install the kraft CLI tool and a container runtime engine, for example Docker.

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

Code(bash)
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. This guide uses fra (Frankfurt, ๐Ÿ‡ฉ๐Ÿ‡ช):

Code(bash)
# Set Unikraft Cloud access token export UKC_TOKEN=token # Set metro to Frankfurt, DE export UKC_METRO=fra

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

Code(bash)
kraft cloud deploy -p 443:9001/http+tls -p 9000:9000/tls -M 512 .

The output shows the instance address and other details:

Code(ansi)
[โ—] Deployed successfully! โ”‚ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ name: minio-w2my8 โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ uuid: 31e691ad-05a0-48b6-ad49-7f79da8e1754 โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ state: running โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ url: https://icy-bird-tregaga9.fra.unikraft.app โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ 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 address is https://icy-bird-tregaga9.fra.unikraft.app. They're different for each run.

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

You can list information about the instance by running:

Code(bash)
kraft cloud instance list
Code(text)
NAME FQDN STATE CREATED AT IMAGE MEMORY ARGS BOOT TIME minio-w2my8 icy-bird-tregaga9.fra.unikraft.app running 1 minute ago minio@sha256:ba4657c607495326b0e29b51... 512 MiB /usr/bin/minio server --addres... 73651us

When done, you can remove the instance:

Code(bash)
kraft cloud instance remove minio-w2my8

Customize your app

To customize the app, 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:

Code(bash)
kraft cloud --help

Or visit the CLI Reference.

Last modified on