feat: 透传 AI 入站令牌(默认不启用)
This commit is contained in:
@@ -54,6 +54,14 @@ spec:
|
||||
secretKeyRef:
|
||||
name: lpt-secrets
|
||||
key: llm-api-key
|
||||
# 安全-03:入站令牌。optional 表示 secret 里没有这个 key 时 Pod 仍能启动
|
||||
# (此时 /ai/* 与 /admin 不校验令牌),加上 key 即可收紧。
|
||||
- name: LPT_AI_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: lpt-secrets
|
||||
key: lpt-ai-token
|
||||
optional: true
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
|
||||
@@ -48,6 +48,13 @@ spec:
|
||||
configMapKeyRef:
|
||||
name: lpt-config
|
||||
key: LPT_AI-SERVICE_URL
|
||||
# 安全-03:与 lpt-ai 共用的入站令牌;secret 里没有该 key 时不影响启动
|
||||
- name: LPT_AI-SERVICE_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: lpt-secrets
|
||||
key: lpt-ai-token
|
||||
optional: true
|
||||
resources:
|
||||
requests:
|
||||
cpu: 250m
|
||||
|
||||
@@ -54,6 +54,14 @@ spec:
|
||||
secretKeyRef:
|
||||
name: lpt-secrets
|
||||
key: llm-api-key
|
||||
# 安全-03:入站令牌。optional 表示 secret 里没有这个 key 时 Pod 仍能启动
|
||||
# (此时 /ai/* 与 /admin 不校验令牌),加上 key 即可收紧。
|
||||
- name: LPT_AI_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: lpt-secrets
|
||||
key: lpt-ai-token
|
||||
optional: true
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
|
||||
@@ -48,6 +48,13 @@ spec:
|
||||
configMapKeyRef:
|
||||
name: lpt-config
|
||||
key: LPT_AI-SERVICE_URL
|
||||
# 安全-03:与 lpt-ai 共用的入站令牌;secret 里没有该 key 时不影响启动
|
||||
- name: LPT_AI-SERVICE_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: lpt-secrets
|
||||
key: lpt-ai-token
|
||||
optional: true
|
||||
resources:
|
||||
requests:
|
||||
cpu: 250m
|
||||
|
||||
Reference in New Issue
Block a user