Files
Kubernetes/Helm/Helm部署Minio替代品RustFS.md
offends c33e9109e0
All checks were successful
continuous-integration/drone Build is passing
修改S3地址,文档
2025-12-25 14:08:39 +08:00

100 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

> 本文作者:丁辉
# Helm部署Minio替代品RustFS
[官方仓库](https://github.com/rustfs/rustfs/tree/main/helm)
## 安装 RustFS 集群
1. 添加 Helm 仓库
```bash
helm repo add rustfs https://charts.rustfs.com
helm repo update
```
2. 创建命名空间
```bash
kubectl create ns rustfs
```
3. 配置 Ingress 证书(这一步需要在安装前执行,否则 Helm 无法正确配置 Tls 参数)
```bash
kubectl create secret tls rustfs-tls --key nginx.key --cert nginx.pem -n rustfs
```
4. 下载 rustfs-values.yaml 文件
- 单节点部署
[查看文件内容](https://gitee.com/offends/Kubernetes/blob/main/File/Yaml/rustfs-values-standalone.yaml) (根据自己情况修改)
```bash
wget https://gitee.com/offends/Kubernetes/raw/main/File/Yaml/rustfs-values-standalone.yaml
```
- 集群部署
[查看文件内容](https://gitee.com/offends/Kubernetes/blob/main/File/Yaml/rustfs-values-distributed.yaml) (根据自己情况修改)
```bash
wget https://gitee.com/offends/Kubernetes/raw/main/File/Yaml/rustfs-values-distributed.yaml
```
配置节点标签
```bash
kubectl label node ${node} rustfs="true"
```
5. 安装 RustFS 集群
- 单节点部署
```bash
helm install \
rustfs-cluster rustfs/rustfs \
--namespace rustfs \
--create-namespace \
-f rustfs-values-standalone.yaml
```
- 集群部署
```bash
helm install \
rustfs-cluster rustfs/rustfs \
--namespace rustfs \
--create-namespace \
-f rustfs-values-distributed.yaml
```
6. 访问页面
访问地址rustfs.example.com
账号密码rustfsadmin/rustfsadmin
## 卸载
1. 卸载 RustFS 集群
```bash
helm uninstall rustfs-cluster -n rustfs
```
2. 删除命名空间
```bash
kubectl delete ns rustfs
```
3. 清理 Pvc 资源(生产环境慎重考虑)
```bash
kubectl delete pvc -n rustfs --all
```