fix: scope host networking to v02 frpc

This commit is contained in:
Codex
2026-06-01 01:40:47 +08:00
parent ac909d459d
commit 2787013a72
+5 -2
View File
@@ -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",