Skip to content

Commit

Permalink
doc: add a doc for deploying Object Storage (#4777)
Browse files Browse the repository at this point in the history
* Add a doc for deploying Object Storage

* add uninstall.md
  • Loading branch information
nowinkeyy authored Jun 14, 2024
1 parent 469e9c9 commit 1c6f950
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docs/4.0/docs/guides/objectstorage/install.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
sidebar_position: 1
---

# Install Object Storage

Download the Helm charts.

```bash
curl -O https://raw.githubusercontent.com/minio/operator/master/helm-releases/operator-5.0.6.tgz
```

Install Operator.

```bash
helm install --namespace minio-system --create-namespace minio-operator operator-5.0.6.tgz
```

Install Minio, Controller, etc.

```bash
# DOMAIN is the domain name for the Sealos cluster
# Set environment variables for Minio admin account (default Minio admin account is username/passw0rd)
# -e minioAdminUser={16-character random alphanumeric string} -e minioAdminPassword={32-character random alphanumeric string}
sealos run ghcr.io/labring/sealos-cloud-objectstorage:latest -e cloudDomain={DOMAIN}
```
21 changes: 21 additions & 0 deletions docs/4.0/docs/guides/objectstorage/uninstall.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
sidebar_position: 2
---

# Uninstall Object Storage

Installation of the Object Storage failed, you can use the script to clean up the remaining resources. Uninstalling the
Object Storage can also be done using the script to clean up.

```bash
#!/usr/bin/env bash
set +e

kubectl delete app objectstorage -n app-system
kubectl delete ns objectstorage-system objectstorage-frontend
helm uninstall minio-operator -n minio-system
kubectl delete ns minio-system
kubectl delete crd objectstoragebuckets.objectstorage.sealos.io objectstorageusers.objectstorage.sealos.io
kubectl delete clusterrole objectstorage-manager-role objectstorage-metrics-reader objectstorage-proxy-role
kubectl delete clusterrolebinding objectstorage-manager-rolebinding objectstorage-proxy-rolebinding
```
26 changes: 26 additions & 0 deletions docs/4.0/i18n/zh-Hans/guides/objectstorage/install.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
sidebar_position: 1
---

# 部署对象存储

下载 helm 图表。

```bash
curl -O https://raw.githubusercontent.com/minio/operator/master/helm-releases/operator-5.0.6.tgz
```

安装 minio-operator。

```bash
helm install --namespace minio-system --create-namespace minio-operator operator-5.0.6.tgz
```

安装 Minio、Controller 等。

```bash
# DOMAIN 是 Sealos 集群的域名
# 环境变量设置 Minio 管理员账户(默认的 Minio 管理员账户为 username/passw0rd)
# -e minioAdminUser={16位随机大小写字符串} -e minioAdminPassword={32位随机大小写字符串}
sealos run ghcr.io/labring/sealos-cloud-objectstorage:latest -e cloudDomain={DOMAIN}
```
20 changes: 20 additions & 0 deletions docs/4.0/i18n/zh-Hans/guides/objectstorage/uninstall.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
sidebar_position: 2
---

# 卸载对象存储

安装「对象存储」失败,可以使用脚本清理残留资源,卸载「对象存储」也可以使用脚本清理。

```bash
#!/usr/bin/env bash
set +e

kubectl delete app objectstorage -n app-system
kubectl delete ns objectstorage-system objectstorage-frontend
helm uninstall minio-operator -n minio-system
kubectl delete ns minio-system
kubectl delete crd objectstoragebuckets.objectstorage.sealos.io objectstorageusers.objectstorage.sealos.io
kubectl delete clusterrole objectstorage-manager-role objectstorage-metrics-reader objectstorage-proxy-role
kubectl delete clusterrolebinding objectstorage-manager-rolebinding objectstorage-proxy-rolebinding
```

0 comments on commit 1c6f950

Please sign in to comment.