728x90
Overview
- 오픈소스로 제공되는 Object Storage이며, S3와 호환된다.
- 해당 글에서는 Prefect의 Code Storage로 사용된다.
- Single Node Single Drive 구축을 수행한다.
OS : CentOS 7.9
1. Installation
> wget https://dl.min.io/server/minio/release/linux-amd64/archive/minio-20230428181117.0.0.x86_64.rpm -O minio.rpm
> yum -y install minio.rpm
2. Systemd 설정
> vim /etc/systemd/system/minio.service
[Unit]
Description=MinIO
Documentation=https://docs.min.io
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
# Let systemd restart this service always
Restart=always
# Specifies the maximum file descriptor number that can be opened by this process
LimitNOFILE=1048576
# Specifies the maximum number of threads this process can create
TasksMax=infinity
# Disable timeout logic and wait until process is stopped
TimeoutStopSec=infinity
SendSIGKILL=no
[Install]
WantedBy=multi-user.target
# Built for ${project.name}-${project.version} (${project.name})
3. User & Group 생성 및 권한 부여
> groupadd -r minio-user
> useradd -M -r -g minio-user minio-user
> chown minio-user:minio-user /mnt/disk1 /mnt/data
4. MinIO 설정
# MINIO_ROOT_USER and MINIO_ROOT_PASSWORD sets the root account for the MinIO server.
# This user has unrestricted permissions to perform S3 and administrative API operations on any resource in the deployment.
# Omit to use the default values 'minioadmin:minioadmin'.
# MinIO recommends setting non-default values as a best practice, regardless of environment
MINIO_ROOT_USER=admin
MINIO_ROOT_PASSWORD=Password
MINIO_OPTS="--console-address :9001"
# MINIO_VOLUMES sets the storage volume or path to use for the MinIO server.
MINIO_VOLUMES="/mnt/data"
# MINIO_SERVER_URL sets the hostname of the local machine for use with the MinIO Server
# MinIO assumes your network control plane can correctly resolve this hostname to the local machine
MINIO_SERVER_URL="http://172.30.1.210:9000"
5. Run
> systemctl start minio.service
> systemctl enable minio.service
> systemctl status minio.service
# Web 확인
> http://172.30.1.210:9001
728x90