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:
-
Install the
kraft
CLI tool and a container runtime engine, e.g. Docker. -
Clone the
examples
repository andcd
into theexamples/minio/
directory:
git clone https://github.com/kraftcloud/examplescd 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:
# Set Unikraft Cloud access tokenexport UKC_TOKEN=token# Set metro to Frankfurt, DEexport UKC_METRO=fra0
When done, invoke the following command to deploy this application on Unikraft Cloud:
kraft cloud deploy -p 443:9001/http+tls -p 9000:9000/tls -M 512 .
The output shows the instance URL and other details:
[β] 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:
kraft cloud instance list
NAME FQDN STATE CREATED AT IMAGE MEMORY ARGS BOOT TIMEminio-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:
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 argumentsDockerfile
: 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"]
FROM debian:bookworm AS build
RUN set -xe; \ echo "Your code here";
FROM scratch
# Copy your files here# COPY --from=build / /
Learn More
Use the --help
option for detailed information on using Unikraft Cloud:
kraft cloud --help
Or visit the CLI Reference.