Files
datapod-helm/pocketbase/README.md
2026-01-14 12:37:31 +08:00

72 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# PocketBase Helm Chart
部署多个 PocketBase 实例,支持 Traefik ingress。
## 前置条件
- Kubernetes 1.19+
- Helm 3.2.0+
- Traefik ingress 控制器
- StorageClass用于持久化存储
## 安装
```bash
helm install my-pocketbase ./pocketbase -f values.yaml
```
## 配置
### instances
部署的 PocketBase 实例列表:
```yaml
instances:
- id: "app1"
domain: "app1.pb.xiongxiao.me"
replicaCount: 1
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 500m
memory: 512Mi
- id: "app2"
domain: "app2.pb.xiongxiao.me"
replicaCount: 1
```
### persistence
持久化配置:
```yaml
persistence:
enabled: true
storageClass: "local-path"
size: 5Gi
accessMode: ReadWriteOnce
```
## 升级
```bash
helm upgrade my-pocketbase ./pocketbase -f values.yaml
```
## 卸载
```bash
helm uninstall my-pocketbase
```
这将删除所有 PocketBase 实例及其 PVC。
## 技术说明
- **数据库**: 使用 SQLite 本地存储,数据保存在 `/pb/pb_data` 目录
- **持久化**: 通过 PVC 实现数据持久化
- **入口**: 使用 Traefik IngressRoute 配置路由