This commit is contained in:
94
Helm/Helm部署Minio替代品RustFS.md
Normal file
94
Helm/Helm部署Minio替代品RustFS.md
Normal file
@@ -0,0 +1,94 @@
|
||||
> 本文作者:丁辉
|
||||
|
||||
# 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
|
||||
```
|
||||
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
|
||||
2. 下载模版文件
|
||||
|
||||
[查看文件内容](https://gitee.com/offends/Kubernetes/blob/main/File/Yaml/ingress-values-hostnetwork.yaml) (根据自己情况修改)
|
||||
|
||||
```bash
|
||||
wget https://gitee.com/offends/Kubernetes/raw/main/File/Yaml/ingress-values-hostnetwork.yaml
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user