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 and cd
into the examples/minio/
directory:
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:
# 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:
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 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:
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:
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 "
]
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 KraftCloud:
Or visit the CLI Reference .