feat: 补充用量统计与上报的部署配置
- configmap 增加计价表与上报地址,改价不必重新发版 - lpt-ai 增加 LPT_AI_REPORT_URL/TOKEN,lpt-be 增加上报入站令牌 - 新增白名单变量,共用一个可选 secret key
This commit is contained in:
@@ -55,6 +55,14 @@ spec:
|
||||
name: lpt-secrets
|
||||
key: lpt-ai-token
|
||||
optional: true
|
||||
# 用量上报入站令牌(与 lpt-ai 的 LPT_AI_REPORT_TOKEN 同一个 secret key);
|
||||
# 为空表示不校验。该接口在 /internal/** 下,已排除 Sa-Token 登录校验。
|
||||
- name: LPT_AI-USAGE_REPORT-TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: lpt-secrets
|
||||
key: lpt-ai-report-token
|
||||
optional: true
|
||||
resources:
|
||||
requests:
|
||||
cpu: 250m
|
||||
|
||||
Reference in New Issue
Block a user