Skip to content

Deploy 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:

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

Make sure to log into KraftCloud by setting your token and a metro close to you. We use fra0 (Frankfurt, πŸ‡©πŸ‡ͺ) in this guide:

Terminal window
# Set KraftCloud access token
export KRAFTCLOUD_TOKEN=token
# Set metro to Frankfurt, DE
export KRAFTCLOUD_METRO=fra0

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

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

The output shows the instance URL and other details:

Terminal window
[●] 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 group: 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:

Terminal window
kraft cloud instance list
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:

Terminal window
kraft cloud instance remove minio-w2my8

Customize your Application

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

  • Kraftfile: the KraftCloud specification, including command-line arguments
  • Dockerfile: In case you need to add files to your instance’s rootfs
spec: v0.6
runtime: minio:latest
rootfs: ./Dockerfile
cmd: [
"/usr/bin/minio",
"server",
"--address", "0.0.0.0:9000",
"--console-address", "0.0.0.0:9001",
"/data"
]

Learn More

Use the --help option for detailed information on using KraftCloud:

Terminal window
kraft cloud --help

Or visit the CLI Reference.