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",