ymal: compose repeated node lane templates
This commit is contained in:
@@ -6,16 +6,14 @@ metadata:
|
||||
- 1148
|
||||
- 1110
|
||||
- 1117
|
||||
|
||||
defaults:
|
||||
targetId: JD01
|
||||
|
||||
server:
|
||||
id: benchmark-validated-master-shadowsocks-server
|
||||
enabled: true
|
||||
benchmarkRef: pikasTech/unidesk#1110
|
||||
implementationRef: pikasTech/unidesk#1117
|
||||
sourceConfigRef: config/platform-infra/egress-proxy-sources.yaml#sources.master-shadowsocks
|
||||
benchmarkRef: "pikasTech/unidesk#1110"
|
||||
implementationRef: "pikasTech/unidesk#1117"
|
||||
sourceConfigRef: "config/platform-infra/egress-proxy-sources.yaml#sources.master-shadowsocks"
|
||||
composeFile: config/platform-infra/sub2api-master-egress-proxy.compose.yaml
|
||||
serviceName: sub2api-master-egress-proxy
|
||||
containerName: unidesk-sub2api-master-egress-proxy
|
||||
@@ -27,176 +25,116 @@ server:
|
||||
mode: tcp
|
||||
host: 127.0.0.1
|
||||
port: 18792
|
||||
|
||||
sources:
|
||||
nc01-vpn-server-shadowsocks:
|
||||
sourceType: vpn-server-shadowsocks
|
||||
serverRef: /root/vpn-server
|
||||
extends: templates.sources.singBoxHostClient
|
||||
benchmarkRef: local-vpn-server
|
||||
implementationRef: /root/vpn-server
|
||||
sourceConfigRef: config/platform-infra/egress-proxy-sources.yaml#sources.nc01-vpn-server-shadowsocks
|
||||
client:
|
||||
mode: trans-static-binary
|
||||
upstreamUrl: https://github.com/SagerNet/sing-box/releases/download/v1.13.14/sing-box-1.13.14-linux-amd64.tar.gz
|
||||
version: v1.13.14
|
||||
archiveCachePath: .state/artifacts/platform-infra/sing-box-1.13.14-linux-amd64.tar.gz
|
||||
archiveSha256: f48703461a15476951ac4967cdad339d986f4b8096b4eb3ff0829a500502d697
|
||||
archiveInstallPath: /var/cache/unidesk/host-egress-proxy/sing-box-1.13.14-linux-amd64.tar.gz
|
||||
binaryMember: sing-box-1.13.14-linux-amd64/sing-box
|
||||
binaryCachePath: .state/artifacts/platform-infra/sing-box-1.13.14-linux-amd64
|
||||
binarySha256: 68aeab83cc4ab2659a5b92232261a20746ccdafc3b3d1e19b2d63247eec3bbf7
|
||||
installPath: /usr/local/bin/sing-box
|
||||
configPath: /etc/unidesk/host-egress-proxy/sing-box.json
|
||||
unitPath: /etc/systemd/system/unidesk-host-egress-proxy.service
|
||||
serviceName: unidesk-host-egress-proxy
|
||||
listenHost: 127.0.0.1
|
||||
listenPort: 10808
|
||||
podAccess:
|
||||
enabled: true
|
||||
listenHost: 10.42.0.1
|
||||
listenPort: 10808
|
||||
proxyUrl: http://10.42.0.1:10808
|
||||
clashApiListen: 127.0.0.1:19090
|
||||
healthUrl: http://127.0.0.1:19090/connections
|
||||
proxyUrl: http://127.0.0.1:10808
|
||||
externalProbeUrl: https://www.gstatic.com/generate_204
|
||||
|
||||
jd01-real-deps-master-shadowsocks:
|
||||
sourceType: vpn-server-shadowsocks
|
||||
serverRef: /root/vpn-server
|
||||
benchmarkRef: pikasTech/unidesk#1110
|
||||
implementationRef: /root/vpn-server
|
||||
sourceConfigRef: config/platform-infra/egress-proxy-sources.yaml#sources.nc01-vpn-server-shadowsocks
|
||||
client:
|
||||
mode: trans-static-binary
|
||||
upstreamUrl: https://github.com/SagerNet/sing-box/releases/download/v1.13.14/sing-box-1.13.14-linux-amd64.tar.gz
|
||||
version: v1.13.14
|
||||
archiveCachePath: .state/artifacts/platform-infra/sing-box-1.13.14-linux-amd64.tar.gz
|
||||
archiveSha256: f48703461a15476951ac4967cdad339d986f4b8096b4eb3ff0829a500502d697
|
||||
archiveInstallPath: /var/cache/unidesk/host-egress-proxy/sing-box-1.13.14-linux-amd64.tar.gz
|
||||
binaryMember: sing-box-1.13.14-linux-amd64/sing-box
|
||||
binaryCachePath: .state/artifacts/platform-infra/sing-box-1.13.14-linux-amd64
|
||||
binarySha256: 68aeab83cc4ab2659a5b92232261a20746ccdafc3b3d1e19b2d63247eec3bbf7
|
||||
installPath: /usr/local/bin/sing-box
|
||||
configPath: /etc/unidesk/host-egress-proxy/sing-box.json
|
||||
unitPath: /etc/systemd/system/unidesk-host-egress-proxy.service
|
||||
serviceName: unidesk-host-egress-proxy
|
||||
listenHost: 127.0.0.1
|
||||
listenPort: 10808
|
||||
podAccess:
|
||||
enabled: true
|
||||
listenHost: 10.42.0.1
|
||||
listenPort: 10808
|
||||
proxyUrl: http://10.42.0.1:10808
|
||||
clashApiListen: 127.0.0.1:19090
|
||||
healthUrl: http://127.0.0.1:19090/connections
|
||||
proxyUrl: http://127.0.0.1:10808
|
||||
externalProbeUrl: https://www.gstatic.com/generate_204
|
||||
|
||||
extends: templates.sources.singBoxHostClient
|
||||
benchmarkRef: "pikasTech/unidesk#1110"
|
||||
targets:
|
||||
NC01:
|
||||
extends: templates.targets.hostProxyClient
|
||||
route: NC01
|
||||
enabled: true
|
||||
sourceRef: sources.nc01-vpn-server-shadowsocks
|
||||
env:
|
||||
httpProxy: http://127.0.0.1:10808
|
||||
httpsProxy: http://127.0.0.1:10808
|
||||
allProxy: http://127.0.0.1:10808
|
||||
noProxy:
|
||||
- localhost
|
||||
- 127.0.0.1
|
||||
- ::1
|
||||
- host.docker.internal
|
||||
- 152.53.229.148
|
||||
- 10.0.0.0/8
|
||||
- 10.42.0.0/16
|
||||
- 10.43.0.0/16
|
||||
- 172.16.0.0/12
|
||||
- 192.168.0.0/16
|
||||
- .svc
|
||||
- .svc.cluster.local
|
||||
- .cluster.local
|
||||
- kubernetes
|
||||
- kubernetes.default
|
||||
- kubernetes.default.svc
|
||||
- argocd-repo-server
|
||||
- argocd-repo-server.argocd
|
||||
- argocd-redis
|
||||
- argocd-redis.argocd
|
||||
- git-mirror-http
|
||||
- git-mirror-http.devops-infra
|
||||
- git-mirror-write
|
||||
- git-mirror-write.devops-infra
|
||||
- 127.0.0.1:5000
|
||||
- localhost:5000
|
||||
- hyueapi.com
|
||||
- .hyueapi.com
|
||||
files:
|
||||
envFile: /etc/unidesk/proxy.env
|
||||
profile: /etc/profile.d/unidesk-proxy.sh
|
||||
apt: /etc/apt/apt.conf.d/90unidesk-proxy
|
||||
dockerSystemdDropIn: /etc/systemd/system/docker.service.d/10-unidesk-proxy.conf
|
||||
k3sSystemdDropIn: /etc/systemd/system/k3s.service.d/10-unidesk-proxy.conf
|
||||
trans:
|
||||
hostProxyEnv:
|
||||
enabled: true
|
||||
envFileRef: files.envFile
|
||||
applyTo: host-posix-commands
|
||||
apply:
|
||||
reloadSystemd: true
|
||||
restartDocker: true
|
||||
restartK3s: true
|
||||
|
||||
noProxyRefs:
|
||||
common: noProxy.common
|
||||
extras: noProxy.nodeExtras.NC01
|
||||
JD01:
|
||||
extends: templates.targets.hostProxyClient
|
||||
route: JD01
|
||||
enabled: true
|
||||
sourceRef: sources.jd01-real-deps-master-shadowsocks
|
||||
env:
|
||||
httpProxy: http://127.0.0.1:10808
|
||||
httpsProxy: http://127.0.0.1:10808
|
||||
allProxy: http://127.0.0.1:10808
|
||||
noProxy:
|
||||
- localhost
|
||||
- 127.0.0.1
|
||||
- ::1
|
||||
- host.docker.internal
|
||||
- 74.48.78.17
|
||||
- 82.156.23.220
|
||||
- 10.0.0.0/8
|
||||
- 10.42.0.0/16
|
||||
- 10.43.0.0/16
|
||||
- 172.16.0.0/12
|
||||
- 192.168.0.0/16
|
||||
- .svc
|
||||
- .svc.cluster.local
|
||||
- .cluster.local
|
||||
- kubernetes
|
||||
- kubernetes.default
|
||||
- kubernetes.default.svc
|
||||
- argocd-repo-server
|
||||
- argocd-repo-server.argocd
|
||||
- argocd-redis
|
||||
- argocd-redis.argocd
|
||||
- git-mirror-http
|
||||
- git-mirror-http.devops-infra
|
||||
- git-mirror-write
|
||||
- git-mirror-write.devops-infra
|
||||
- 127.0.0.1:5000
|
||||
- localhost:5000
|
||||
- hyueapi.com
|
||||
- .hyueapi.com
|
||||
files:
|
||||
envFile: /etc/unidesk/proxy.env
|
||||
profile: /etc/profile.d/unidesk-proxy.sh
|
||||
apt: /etc/apt/apt.conf.d/90unidesk-proxy
|
||||
dockerSystemdDropIn: /etc/systemd/system/docker.service.d/10-unidesk-proxy.conf
|
||||
k3sSystemdDropIn: /etc/systemd/system/k3s.service.d/10-unidesk-proxy.conf
|
||||
trans:
|
||||
hostProxyEnv:
|
||||
enabled: true
|
||||
envFileRef: files.envFile
|
||||
applyTo: host-posix-commands
|
||||
apply:
|
||||
reloadSystemd: true
|
||||
restartDocker: true
|
||||
restartK3s: true
|
||||
noProxyRefs:
|
||||
common: noProxy.common
|
||||
extras: noProxy.nodeExtras.JD01
|
||||
templates:
|
||||
sources:
|
||||
singBoxHostClient:
|
||||
sourceType: vpn-server-shadowsocks
|
||||
serverRef: /root/vpn-server
|
||||
implementationRef: /root/vpn-server
|
||||
sourceConfigRef: "config/platform-infra/egress-proxy-sources.yaml#sources.nc01-vpn-server-shadowsocks"
|
||||
client:
|
||||
mode: trans-static-binary
|
||||
upstreamUrl: https://github.com/SagerNet/sing-box/releases/download/v1.13.14/sing-box-1.13.14-linux-amd64.tar.gz
|
||||
version: v1.13.14
|
||||
archiveCachePath: .state/artifacts/platform-infra/sing-box-1.13.14-linux-amd64.tar.gz
|
||||
archiveSha256: f48703461a15476951ac4967cdad339d986f4b8096b4eb3ff0829a500502d697
|
||||
archiveInstallPath: /var/cache/unidesk/host-egress-proxy/sing-box-1.13.14-linux-amd64.tar.gz
|
||||
binaryMember: sing-box-1.13.14-linux-amd64/sing-box
|
||||
binaryCachePath: .state/artifacts/platform-infra/sing-box-1.13.14-linux-amd64
|
||||
binarySha256: 68aeab83cc4ab2659a5b92232261a20746ccdafc3b3d1e19b2d63247eec3bbf7
|
||||
installPath: /usr/local/bin/sing-box
|
||||
configPath: /etc/unidesk/host-egress-proxy/sing-box.json
|
||||
unitPath: /etc/systemd/system/unidesk-host-egress-proxy.service
|
||||
serviceName: unidesk-host-egress-proxy
|
||||
listenHost: 127.0.0.1
|
||||
listenPort: 10808
|
||||
podAccess:
|
||||
enabled: true
|
||||
listenHost: 10.42.0.1
|
||||
listenPort: 10808
|
||||
proxyUrl: http://10.42.0.1:10808
|
||||
clashApiListen: 127.0.0.1:19090
|
||||
healthUrl: http://127.0.0.1:19090/connections
|
||||
proxyUrl: http://127.0.0.1:10808
|
||||
externalProbeUrl: https://www.gstatic.com/generate_204
|
||||
targets:
|
||||
hostProxyClient:
|
||||
enabled: true
|
||||
env:
|
||||
httpProxy: http://127.0.0.1:10808
|
||||
httpsProxy: http://127.0.0.1:10808
|
||||
allProxy: http://127.0.0.1:10808
|
||||
files:
|
||||
envFile: /etc/unidesk/proxy.env
|
||||
profile: /etc/profile.d/unidesk-proxy.sh
|
||||
apt: /etc/apt/apt.conf.d/90unidesk-proxy
|
||||
dockerSystemdDropIn: /etc/systemd/system/docker.service.d/10-unidesk-proxy.conf
|
||||
k3sSystemdDropIn: /etc/systemd/system/k3s.service.d/10-unidesk-proxy.conf
|
||||
trans:
|
||||
hostProxyEnv:
|
||||
enabled: true
|
||||
envFileRef: files.envFile
|
||||
applyTo: host-posix-commands
|
||||
apply:
|
||||
reloadSystemd: true
|
||||
restartDocker: true
|
||||
restartK3s: true
|
||||
noProxy:
|
||||
common:
|
||||
- localhost
|
||||
- 127.0.0.1
|
||||
- "::1"
|
||||
- host.docker.internal
|
||||
- 10.0.0.0/8
|
||||
- 10.42.0.0/16
|
||||
- 10.43.0.0/16
|
||||
- 172.16.0.0/12
|
||||
- 192.168.0.0/16
|
||||
- .svc
|
||||
- .svc.cluster.local
|
||||
- .cluster.local
|
||||
- kubernetes
|
||||
- kubernetes.default
|
||||
- kubernetes.default.svc
|
||||
- argocd-repo-server
|
||||
- argocd-repo-server.argocd
|
||||
- argocd-redis
|
||||
- argocd-redis.argocd
|
||||
- git-mirror-http
|
||||
- git-mirror-http.devops-infra
|
||||
- git-mirror-write
|
||||
- git-mirror-write.devops-infra
|
||||
- 127.0.0.1:5000
|
||||
- localhost:5000
|
||||
- hyueapi.com
|
||||
- .hyueapi.com
|
||||
nodeExtras:
|
||||
NC01:
|
||||
- 152.53.229.148
|
||||
JD01:
|
||||
- 74.48.78.17
|
||||
- 82.156.23.220
|
||||
Reference in New Issue
Block a user