fix: 添加 Spot 抢占式实例注解和环境变量注入
- 添加 eci-spot-instance 注解启用抢占式实例 - 从 .env 读取 ANTHROPIC_BASE_URL 并注入容器环境变量 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -91,6 +91,8 @@ export async function deployProxy(params: DeployProxyParams): Promise<DeployProx
|
||||
annotations: {
|
||||
// ECI 实例规格
|
||||
'k8s.aliyun.com/eci-use-specs': instanceType,
|
||||
// 抢占式实例
|
||||
'k8s.aliyun.com/eci-spot-instance': 'true',
|
||||
// 自动创建 EIP
|
||||
...(autoEip && {
|
||||
'k8s.aliyun.com/eci-open-enable-eip': 'true',
|
||||
@@ -116,6 +118,8 @@ export async function deployProxy(params: DeployProxyParams): Promise<DeployProx
|
||||
annotations: {
|
||||
// ECI 实例规格
|
||||
'k8s.aliyun.com/eci-use-specs': instanceType,
|
||||
// 抢占式实例
|
||||
'k8s.aliyun.com/eci-spot-instance': 'true',
|
||||
// 自动创建 EIP
|
||||
...(autoEip && {
|
||||
'k8s.aliyun.com/eci-open-enable-eip': 'true',
|
||||
|
||||
Reference in New Issue
Block a user