fix: scope host networking to v02 frpc
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user