Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: add a doc for deploying Object Storage #4777

Merged
merged 5 commits into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
```
Loading