Home Object Storage Server - Minio S3 Single
Post
Cancel

Object Storage Server - Minio S3 Single

1. Download the MinIO Server

1
2
wget https://dl.min.io/server/minio/release/linux-amd64/archive/minio_20240716234641.0.0_amd64.deb -O minio.deb
sudo dpkg -i minio.deb

2. Create user and permission

1
2
3
4
groupadd -r minio-user
useradd -M -r -g minio-user minio-user
sudo mkdir -p /mnt/data/minio /etc/minio/certs/ /etc/minio/CAs/
chown minio-user:minio-user /mnt/data/minio /etc/minio/ /etc/minio/certs/ /etc/minio/CAs/

3. Setup config

1
2
3
4
5
6
cat << EOF > /etc/default/minio 
MINIO_ROOT_USER=minioadmin
MINIO_ROOT_PASSWORD=<password>
MINIO_VOLUMES="/mnt/data/minio"
MINIO_OPTS="-C /etc/minio --certs-dir /etc/minio/certs/ --console-address :9001"
EOF

4. Systemd Minio

Usually systemd minio is already available when installed

To check: systemctl cat minio

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[Unit]
Description=MinIO
Documentation=https://../install-minio-single-node-single.html
Wants=network-online.target
After=network-online.target
AssertFileIsExecutable=/usr/local/bin/minio

[Service]
WorkingDirectory=/usr/local
User=minio-user
Group=minio-user
ProtectProc=invisible
EnvironmentFile=-/etc/default/minio
ExecStartPre=/bin/bash -c "if [ -z \"${MINIO_VOLUMES}\" ]; then echo \"Variable MINIO_VOLUMES not set in /etc/default/minio\"; exit 1; fi"
ExecStart=/usr/local/bin/minio server $MINIO_OPTS $MINIO_VOLUMES
Restart=always
LimitNOFILE=65536
TasksMax=infinity
TimeoutStopSec=infinity
SendSIGKILL=no

[Install]
WantedBy=multi-user.target

5. Starting the MinIO Server

1
2
sudo systemctl daemon-reload
sudo systemctl start minio

6. Apply Minio with Application

Read more: Notion Minion

  1. Setup CA cert TLS (not require)

  2. Install Minio Client

  3. Setup Minio Client connect to Minio Server

  4. Minio Client Create user

  5. Migrate to Minio Distribute

Now i can base on credentials and endpoint connect to Minio Server

For example: Kubernetes (Velero) backup & restore

7. Reference

This post is licensed under CC BY 4.0 by the author.

Comments powered by Disqus.

Kubernetes - Deploying Cluster Kubernetes with Ansible Playbooks

Chuyện giờ mới kể - Con Đường Từ Khó Khăn Đến Hiệu Quả