minio 支持基于yaml 的配置参数

minio 23 年底的一个版本中,支持了基于yaml 的配置参数,以前基于环境变量的模式还是支持的,只是yaml 成为一个首选模式

参考配置

  • yaml 配置
version: v1
address: ':9000'
rootUser: 'minioadmin'
rootPassword: 'pBU94AGAY85e'
console-address: ':9001'
certs-dir: '/home/user/.minio/certs/'
pools: # Specify the nodes and drives with pools
  -
    - 'https://server-example-pool1:9000/mnt/disk{1...4}/'
    - 'https://server{1...2}-pool1:9000/mnt/disk{1...4}/'
    - 'https://server3-pool1:9000/mnt/disk{1...4}/'
    - 'https://server4-pool1:9000/mnt/disk{1...4}/'
  -
    - 'https://server-example-pool2:9000/mnt/disk{1...4}/'
    - 'https://server{1...2}-pool2:9000/mnt/disk{1...4}/'
    - 'https://server3-pool2:9000/mnt/disk{1...4}/'
    - 'https://server4-pool2:9000/mnt/disk{1...4}/'
...
 
options:
  ftp: # settings for MinIO to act as an ftp server
    address: ':8021'
    passive-port-range: '30000-40000'
  sftp: # settings for MinIO to act as an sftp server
    address: ':8022'
    ssh-private-key: '/home/user/.ssh/id_rsa'
  • 启动
minio server --config config.yaml
 
 

说明

基于配置文件的管理会方便不少,至少看着比较清晰,同时可以提供一个比较完整的配置信息,方便查看以及调整

参考资料

https://github.com/minio/minio/releases?page=2
https://github.com/minio/minio/blob/master/docs/distributed/CONFIG.md

posted on 2024-01-24 09:19  荣锋亮  阅读(286)  评论(0编辑  收藏  举报

导航