fix: make native k3s egress rollout converge

This commit is contained in:
Codex
2026-05-16 13:32:05 +00:00
parent 704f5316ce
commit 19478a9b2a
2 changed files with 9 additions and 1 deletions
+7 -1
View File
@@ -778,7 +778,13 @@ function k8sDeploymentsForService(service: UniDeskMicroserviceConfig): string[]
function applyK8sScript(service: UniDeskMicroserviceConfig): string {
const manifest = `${targetWorkDir(service)}/${k8sManifestPath(service)}`;
return `KUBECONFIG=${shellQuote(k8sKubeconfig)} kubectl apply -f ${shellQuote(manifest)}`;
const cleanup = service.id === "code-queue"
? `KUBECONFIG=${shellQuote(k8sKubeconfig)} kubectl -n ${shellQuote(k8sNamespace)} delete endpointslice d601-provider-egress-proxy --ignore-not-found`
: "";
return [
cleanup,
`KUBECONFIG=${shellQuote(k8sKubeconfig)} kubectl apply -f ${shellQuote(manifest)}`,
].filter(Boolean).join("\n");
}
function stampK8sScript(service: UniDeskMicroserviceConfig, desired: DeployManifestService, resolvedCommit: string): string {
@@ -75,6 +75,8 @@ metadata:
unidesk.ai/provider-id: D601
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app.kubernetes.io/name: provider-egress-proxy