feat: activate D601 sub2api external edge

This commit is contained in:
Codex
2026-06-12 07:56:46 +00:00
parent f5a6610fe9
commit c23d9b5ea0
8 changed files with 2375 additions and 164 deletions
@@ -80,6 +80,10 @@ export interface CodexPoolSentinelManifestOptions {
serviceName: string;
serviceDns: string;
appSecretName: string;
proxy?: {
httpProxy: string;
noProxy: string;
} | null;
}
export function defaultCodexPoolSentinelConfig(): CodexPoolSentinelConfig {
@@ -317,6 +321,25 @@ export function renderCodexPoolSentinelManifest(
const activeDeadlineSeconds = Math.max(300, Math.min(3600, config.probe.timeoutSeconds + 240));
const command = sentinelContainerShellCommand(config);
const runtimeImage = codexPoolSentinelRuntimeImage(config).runtimeImage;
const proxyEnv = options.proxy?.httpProxy
? ` - name: HTTP_PROXY
value: ${JSON.stringify(options.proxy.httpProxy)}
- name: HTTPS_PROXY
value: ${JSON.stringify(options.proxy.httpProxy)}
- name: ALL_PROXY
value: ${JSON.stringify(options.proxy.httpProxy)}
- name: http_proxy
value: ${JSON.stringify(options.proxy.httpProxy)}
- name: https_proxy
value: ${JSON.stringify(options.proxy.httpProxy)}
- name: all_proxy
value: ${JSON.stringify(options.proxy.httpProxy)}
- name: NO_PROXY
value: ${JSON.stringify(options.proxy.noProxy)}
- name: no_proxy
value: ${JSON.stringify(options.proxy.noProxy)}
`
: "";
return `apiVersion: v1
kind: Secret
metadata:
@@ -446,6 +469,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
${proxyEnv}
volumeMounts:
- name: sentinel-config
mountPath: /opt/sentinel