feat: 补充用量统计与上报的部署配置

- configmap 增加计价表与上报地址,改价不必重新发版
- lpt-ai 增加 LPT_AI_REPORT_URL/TOKEN,lpt-be 增加上报入站令牌
- 新增白名单变量,共用一个可选 secret key
This commit is contained in:
admin
2026-10-10 18:46:11 +08:00
parent 9160dd1af7
commit 18d34f816f
6 changed files with 72 additions and 0 deletions
+14
View File
@@ -62,6 +62,20 @@ spec:
name: lpt-secrets
key: lpt-ai-token
optional: true
# 用量上报(lpt-ai → lpt-be):地址为空时不上报,只保留本地面板
- name: LPT_AI_REPORT_URL
valueFrom:
configMapKeyRef:
name: lpt-config
key: LPT_AI_REPORT_URL
# 与 lpt-be 的 lpt.ai-usage.report-token 共用一个 secret key;
# optional 表示没设也能启动(此时 lpt-be 不校验上报令牌)
- name: LPT_AI_REPORT_TOKEN
valueFrom:
secretKeyRef:
name: lpt-secrets
key: lpt-ai-report-token
optional: true
resources:
requests:
cpu: 100m