Files
aiops/deploy/kubernetes/configmap.yaml
T
Logan.Li 1f4f63cf6e feat: mode=local 统一走 SQLite + redka 本地存储
- 二进制 --mode local 或环境变量 MODE=local 自动配置 SQLite + redka
- K8s Deployment 默认 MODE=local,移除外部 MySQL/Redis 依赖
- /version 返回 redis_driver;SQLite 兼容 agent 数据清理 SQL
2026-06-26 13:23:30 +08:00

32 lines
737 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: data/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