From 2787013a72d4337d69b1c61ec169d47aa4719915 Mon Sep 17 00:00:00 2001 From: Codex Date: Mon, 1 Jun 2026 01:40:47 +0800 Subject: [PATCH] fix: scope host networking to v02 frpc --- scripts/g14-gitops-render.mjs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/g14-gitops-render.mjs b/scripts/g14-gitops-render.mjs index c15fface..e6159b27 100644 --- a/scripts/g14-gitops-render.mjs +++ b/scripts/g14-gitops-render.mjs @@ -3782,6 +3782,10 @@ function g14FrpcManifest({ profile = "dev", source = null } = {}) { }; const sourceCommitLabel = source?.full ? { "hwlab.pikastech.local/source-commit": source.full } : {}; const renderedLabels = { ...labels, ...sourceCommitLabel }; + const podNetwork = profile === "v02" ? { + hostNetwork: true, + dnsPolicy: "ClusterFirstWithHostNet" + } : {}; const configText = `serverAddr = "74.48.78.17" serverPort = 7000 loginFailExit = true @@ -3833,8 +3837,7 @@ remotePort = ${edgeRemotePort} template: { metadata: { labels: templateLabels, annotations: templateAnnotations }, spec: { - hostNetwork: true, - dnsPolicy: "ClusterFirstWithHostNet", + ...podNetwork, containers: [{ name: "frpc", image: "fatedier/frpc:v0.68.1",