Files
Kubernetes/Helm/Helm部署Minio替代品RustFS.md
offends e5581862c5
All checks were successful
continuous-integration/drone Build is passing
新增RustFs文档,修改了一些文件
2025-12-25 00:39:45 +08:00

1.8 KiB
Raw Blame History

本文作者:丁辉

Helm部署Minio替代品RustFS

官方仓库

安装 RustFS 集群

  1. 添加 Helm 仓库

    helm repo add rustfs https://charts.rustfs.com
    helm repo update
    
  2. 下载 rustfs-values.yaml 文件

    • 单节点部署

      查看文件内容 (根据自己情况修改)

      wget https://gitee.com/offends/Kubernetes/raw/main/File/Yaml/rustfs-values-standalone.yaml
      
    • 集群部署

      查看文件内容 (根据自己情况修改)

      wget https://gitee.com/offends/Kubernetes/raw/main/File/Yaml/rustfs-values-distributed.yaml
      

      配置节点标签

      kubectl label node ${node} rustfs="true"
      
  3. 安装 RustFS 集群

    • 单节点部署

      helm install \
        rustfs-cluster rustfs/rustfs \
        --namespace rustfs \
        --create-namespace \
        -f rustfs-values-standalone.yaml
      
    • 集群部署

      helm install \
        rustfs-cluster rustfs/rustfs \
        --namespace rustfs \
        --create-namespace \
        -f rustfs-values-distributed.yaml
      
  4. 配置 Ingress 证书

    kubectl create secret tls rustfs-tls --key nginx.key --cert nginx.pem -n rustfs
    
  5. 访问页面

    访问地址rustfs.example.com

    账号密码rustfsadmin/rustfsadmin

卸载

  1. 卸载 RustFS 集群

    helm uninstall rustfs-cluster -n rustfs
    
  2. 删除命名空间

    kubectl delete ns rustfs
    
  3. 清理 Pvc 资源(生产环境慎重考虑)

    kubectl delete pvc -n rustfs --all