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

94 lines
1.8 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. 下载 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"
```
3. 安装 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
```
4. 配置 Ingress 证书
```bash
kubectl create secret tls rustfs-tls --key nginx.key --cert nginx.pem -n rustfs
```
5. 访问页面
访问地址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
```