-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: add a doc for deploying Object Storage (#4777)
* Add a doc for deploying Object Storage * add uninstall.md
- Loading branch information
Showing
4 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |