修复 OpenSandbox 冷启动超时与旧 worker 清理
This commit is contained in:
@@ -6,11 +6,12 @@ metadata:
|
||||
spec:
|
||||
dependsOn:
|
||||
- name: external-secrets
|
||||
- name: nats
|
||||
- name: spire
|
||||
interval: 10m
|
||||
path: ./platform/dynamic-runner
|
||||
prune: false
|
||||
# The runner backends are replaceable. Prune is required when a retired
|
||||
# worker is removed from the component; otherwise it keeps consuming work.
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
|
||||
@@ -85,6 +85,9 @@ vyos_sandbox_k3s_api_interface: eth1
|
||||
vyos_sandbox_k3s_api_port: 6443
|
||||
vyos_opensandbox_api_port: 8080
|
||||
vyos_opensandbox_node_port: 30080
|
||||
# Lifecycle create is synchronous and a cold Kata image pull can exceed the
|
||||
# HAProxy 50-second default. Keep this below OpenSandbox's overall timeout.
|
||||
vyos_opensandbox_api_timeout: 600
|
||||
vyos_sandbox_k3s_servers:
|
||||
- name: sandbox1
|
||||
address: "10.60.0.11"
|
||||
|
||||
@@ -20,7 +20,9 @@ set load-balancing haproxy service opensandbox-api listen-address {{ vyos_sandbo
|
||||
set load-balancing haproxy service opensandbox-api port {{ vyos_opensandbox_api_port }}
|
||||
set load-balancing haproxy service opensandbox-api mode 'tcp'
|
||||
set load-balancing haproxy service opensandbox-api backend 'opensandbox-api'
|
||||
set load-balancing haproxy service opensandbox-api timeout client {{ vyos_opensandbox_api_timeout }}
|
||||
set load-balancing haproxy backend opensandbox-api mode 'tcp'
|
||||
set load-balancing haproxy backend opensandbox-api timeout server {{ vyos_opensandbox_api_timeout }}
|
||||
{% for server in vyos_sandbox_k3s_servers %}
|
||||
set load-balancing haproxy backend opensandbox-api server {{ server.name }} address {{ server.address }}
|
||||
set load-balancing haproxy backend opensandbox-api server {{ server.name }} port {{ vyos_opensandbox_node_port }}
|
||||
|
||||
Reference in New Issue
Block a user