feat: 声明 NC01 production lane 与 32010 上游

This commit is contained in:
root
2026-07-15 17:52:34 +02:00
parent f5d8f3c505
commit 0597676261
4 changed files with 55 additions and 6 deletions
+46 -5
View File
@@ -85,6 +85,9 @@ nodes:
gitopsRoot: deploy/gitops/node
sourceRepo: git@github.com:pikasTech/HWLAB.git
publicHost: 74.48.78.17
NC01:
gitopsRoot: deploy/gitops/node/nc01
sourceRepo: git@github.com:pikasTech/HWLAB.git
lanes:
v02:
name: v0.2
@@ -501,7 +504,7 @@ lanes:
livenessFailure: false
readMode: db-or-degraded
fallbackStateSource: false
envReuseServices:
envReuseServices: &v03EnvReuseServices
- hwlab-cloud-api
- hwlab-workbench-runtime
- hwlab-user-billing
@@ -510,7 +513,7 @@ lanes:
- hwlab-gateway
- hwlab-edge-proxy
- hwlab-agent-skills
bootScripts:
bootScripts: &v03BootScripts
hwlab-cloud-api: deploy/runtime/boot/hwlab-cloud-api.sh
hwlab-workbench-runtime: deploy/runtime/boot/hwlab-workbench-runtime.sh
hwlab-user-billing: deploy/runtime/boot/hwlab-user-billing.sh
@@ -519,7 +522,7 @@ lanes:
hwlab-gateway: deploy/runtime/boot/hwlab-gateway.sh
hwlab-edge-proxy: deploy/runtime/boot/hwlab-edge-proxy.sh
hwlab-agent-skills: deploy/runtime/boot/hwlab-agent-skills.sh
serviceDeclarations:
serviceDeclarations: &v03ServiceDeclarations
hwlab-cloud-api:
runtimeKind: bun-command
entrypoint: cmd/hwlab-cloud-api/main.ts
@@ -706,7 +709,7 @@ lanes:
env:
TZ: Asia/Shanghai
observable: true
envRecipe:
envRecipe: &v03EnvRecipe
osPackages:
- ca-certificates
- git
@@ -744,7 +747,7 @@ lanes:
script: tools/hwpod-ctl.ts
- command: hwpod-compiler
script: tools/hwpod-compiler-cli.ts
bootConfig:
bootConfig: &v03BootConfig
template: default
overrides: {}
configMaps:
@@ -964,6 +967,44 @@ lanes:
configMapName: hwlab-v03-project-management-bootstrap
mountPath: /etc/hwlab/project-management
readOnly: true
production:
name: Production
node: NC01
sourceBranch: release
gitopsBranch: release-gitops
gitReadUrl: http://gitea-http.devops-infra.svc.cluster.local:3000/mirrors/pikasTech-HWLAB.git
gitWriteUrl: http://git-mirror-write.devops-infra.svc.cluster.local:8080/pikasTech/HWLAB.git
artifactCatalog: deploy/artifact-catalog.nc01-production.json
runtimePath: deploy/gitops/node/nc01/runtime-production
namespace: hwlab-production
imageTagMode: full
endpoint: https://lab.hwpod.com
publicEndpoints:
frontend: https://lab.hwpod.com
api: https://lab.hwpod.com
publicServices:
nodes:
NC01:
- name: hwlab-cloud-web-public
selector:
app.kubernetes.io/name: hwlab-cloud-web
port: 80
targetPort: 8080
nodePort: 32010
frp:
enabled: false
envReuseServices: *v03EnvReuseServices
bootScripts: *v03BootScripts
serviceDeclarations: *v03ServiceDeclarations
services:
- serviceId: hwlab-cloud-api
env:
HWLAB_METRICS_NAMESPACE: hwlab-production
- serviceId: hwlab-cloud-web
env:
HWLAB_CLOUD_WEB_OPENCODE_UPSTREAM_URL: http://opencode-server.hwlab-production.svc.cluster.local:4096
envRecipe: *v03EnvRecipe
bootConfig: *v03BootConfig
services:
- serviceId: hwlab-cloud-api
namespace: hwlab-dev