feat(deploy): wire smart agent gateway env
ZhenYi committed
Modified chart/templates/_helpers.tpl chart/templates/_helpers.tpl +6 −0 View chart/templates/_helpers.tpl
@@ -124,6 +124,12 @@
124124- name: APP_AIHOST__ENABLED
125125 value: "false"
126126{{- end }}
127{{- if .Values.sagent.enabled }}
128- name: APP_SAGENT__ENABLED
129 value: "true"
130- name: APP_SAGENT__BASE_URL
131 value: {{ .Values.sagent.baseUrl | quote }}
132{{- end }}
127133{{- if .Values.githost.ssh.enabled }}
128134- name: APP_GIT__SSH__PORT
129135 value: {{ .Values.githost.ssh.containerPort | quote }}
Modified chart/values.yaml chart/values.yaml +8 −0 View chart/values.yaml
@@ -240,6 +240,14 @@
240240 botDisplayName: "AI Reviewer"
241241 outputLanguage: "zh-CN"
242242
243# ---------------------------------------------------------------------------
244# 沙箱智能体(agent gateway):任务在远端沙箱里跑,本仓只做建模、审计与落库。
245# 密钥走 secret.env(APP_SAGENT__ADMIN_KEY / APP_SAGENT__ISSUER_SECRET)。
246# ---------------------------------------------------------------------------
247sagent:
248 enabled: false
249 baseUrl: ""
250
243251aihost:
244252 enabled: true
245253 replicaCount: 1
Modified deploy/values/prod.yaml deploy/values/prod.yaml +8 −0 View deploy/values/prod.yaml
@@ -213,6 +213,14 @@
213213 botDisplayName: "AI Reviewer"
214214 outputLanguage: "zh-CN"
215215
216# ---------------------------------------------------------------------------
217# 沙箱智能体(agent gateway):任务在远端沙箱里跑,本仓只做建模、审计与落库。
218# admin_key / issuer_secret 走 secret.env -> APP_SAGENT__ADMIN_KEY / APP_SAGENT__ISSUER_SECRET
219# ---------------------------------------------------------------------------
220sagent:
221 enabled: true
222 baseUrl: "https://agent.gitdata.ai"
223
216224aihost:
217225 enabled: true
218226 replicaCount: 1
Modified deploy/README.md deploy/README.md +3 −1 View deploy/README.md
@@ -23,7 +23,7 @@
2323| `deploy/values/prod.yaml` | 域名、副本数、资源配置、AI 模型等**非敏感**项 | ✅ |
2424| Gitea Secret `PROD_SECRET_VALUES` | 数据库 URL、SMTP 口令、各签名/加密密钥、Redis 口令、AI API key | ❌ |
2525
26`PROD_SECRET_VALUES` 的完整内容(**19 项**,直接复制粘贴到 Gitea 即可):
26`PROD_SECRET_VALUES` 的完整内容(**21 项**,直接复制粘贴到 Gitea 即可):
2727
2828```yaml
2929secret:
@@ -44,6 +44,8 @@
4444 APP_AUTH__CHAT_JWT_SEC: "..."
4545 APP_CI__SECRET_ENCRYPTION_KEY: "..."
4646 APP_IMPORT__TOKEN_SECRET: "..."
47 APP_SAGENT__ADMIN_KEY: "..."
48 APP_SAGENT__ISSUER_SECRET: "..."
4749 APP_AI__API_KEY: "..."
4850 APP_EMAIL__SMTP_PASSWORD: "..."
4951 APP_ADMIN__SEED_USERNAME: "..."