feat: 补充用量统计与上报的部署配置
- configmap 增加计价表与上报地址,改价不必重新发版 - lpt-ai 增加 LPT_AI_REPORT_URL/TOKEN,lpt-be 增加上报入站令牌 - 新增白名单变量,共用一个可选 secret key
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user