Files
aiops/deploy/kubernetes/configmap.yaml
T
Logan.Li 8df0acb338 fix(k8s): 同步 local 模式数据路径为 /app/sqlite3.db 与二进制同级
- deployment/quick-deploy: PVC 挂载 sqlite3.db/redka.db 到 /app/,含旧 data/ 迁移
- configmap 与 run.sh 状态输出对齐新路径
- README 补充 local 模式说明
2026-06-26 16:19:03 +08:00

32 lines
732 B
YAML
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.
# config.yaml — 由 ConfigMap 挂载到 /app/config.yaml
# 注意:环境变量优先级高于此文件 (viper AutomaticEnv)
# 默认 MODE=local(Deployment env)→ SQLite + redka,无需外部 MySQL/Redis
# 集群模式:Deployment 设 MODE=release 并配置 DATABASE_/REDIS_ 环境变量
apiVersion: v1
kind: ConfigMap
metadata:
name: aiops-config
namespace: devops
data:
config.yaml: |
mode: local
port: "8080"
log_level: info
database:
driver: sqlite
dbname: sqlite3.db
max_conn: 100
max_idle: 10
redis:
driver: redka
host: localhost
port: 6379
password: ""
db: 0
jwt:
secret: "aiops-jwt-secret-key-2026"
expire_hour: 24