feat(objectstorage): add Aliyun OSS support and auto-detect provider in deploy workflows
Introduces Aliyun OSS as an alternative to MinIO; deploy scripts and CI workflows now read object_storage.provider from config and conditionally include or skip MinIO resources in both Docker Compose and k3s paths. Also adds ops scheduler domain and its migration tables. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -7,6 +7,11 @@
|
||||
- apps: `tenant-api`, `browser-fetch`, `worker-generate`, `kol-assist-worker`, `scheduler`, `ops-api`, `frontend`, `ops-web`
|
||||
- ingress: `geo-rankly.local` -> `frontend`, `ops.geo-rankly.local` -> `ops-web`
|
||||
|
||||
对象存储部署跟随 `deploy/config.yaml` / `deploy/config.yml` 里的 `object_storage.provider`,并允许 `deploy/config.local.yaml` / `deploy/config.local.yml` 覆盖:
|
||||
|
||||
- `provider: minio` 或 `provider: mino`:部署 MinIO 和 `minio-init`
|
||||
- `provider: aliyun` / `aliyun_oss` / `aliyun-oss` / `oss`:使用 `deploy/k3s-aliyun-oss` overlay,不部署 MinIO 和 `minio-init`
|
||||
|
||||
## 1. 准备镜像
|
||||
|
||||
在线环境建议推到镜像仓库后修改 `kustomization.yaml` 里的 `images`:
|
||||
@@ -59,6 +64,15 @@ kubectl apply -k deploy/k3s
|
||||
kubectl -n geo-rankly get pods -w
|
||||
```
|
||||
|
||||
如果使用阿里云 OSS:
|
||||
|
||||
```bash
|
||||
kubectl apply -k deploy/k3s-aliyun-oss
|
||||
kubectl -n geo-rankly get pods -w
|
||||
```
|
||||
|
||||
离线包里的 `bash deploy.sh k3s` 会自动读取根目录 `config.yaml/config.yml` 和 `config.local.yaml/config.local.yml`,并选择 `k3s` 或 `k3s-aliyun-oss`。
|
||||
|
||||
查看一次性任务:
|
||||
|
||||
```bash
|
||||
|
||||
@@ -156,14 +156,14 @@ qdrant:
|
||||
timeout: 15s
|
||||
|
||||
object_storage:
|
||||
provider: minio
|
||||
endpoint: minio:9000
|
||||
access_key: minioadmin
|
||||
secret_key: minioadmin
|
||||
bucket: geo-private
|
||||
use_ssl: false
|
||||
provider: aliyun
|
||||
endpoint: https://oss-cn-shanghai.aliyuncs.com
|
||||
access_key: LTAI5tAEj8euR8B1gXzMoG84
|
||||
secret_key: lJPrKo9ViyHJE8UWIMmMCY0B6Je8v2
|
||||
bucket: shengxintui
|
||||
use_ssl: true
|
||||
public_base_url: ""
|
||||
region: ""
|
||||
region: cn-shanghai
|
||||
|
||||
cache:
|
||||
driver: redis
|
||||
|
||||
Reference in New Issue
Block a user