From df5778f2fc55f27994bd7cb79e7b1c54903bd203 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E9=87=8E?= Date: Fri, 4 Sep 2026 15:30:05 +0800 Subject: [PATCH] =?UTF-8?q?feat(bootstrap):=20=E6=B7=BB=E5=8A=A0=E5=91=BD?= =?UTF-8?q?=E5=90=8D=E7=A9=BA=E9=97=B4=E5=AE=9A=E4=B9=89=E5=B9=B6=E7=A6=81?= =?UTF-8?q?=E7=94=A8=E7=BD=91=E5=85=B3=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加 longhorn-system 和 mixingx 命名空间定义, 并设置 ArgoCD 同步波次为 -1 以确保优先创建。 同时禁用 basic-test 环境中的网关入口功能。 --- .../basic-test/gateway-ip-ingress.yaml | 19 +++++++++++++++++++ bootstrap/mixingx-basic-test-root.yaml | 14 ++++++++++++++ environments/basic-test/gateway-values.yaml | 5 +---- 3 files changed, 34 insertions(+), 4 deletions(-) create mode 100644 applications/basic-test/gateway-ip-ingress.yaml diff --git a/applications/basic-test/gateway-ip-ingress.yaml b/applications/basic-test/gateway-ip-ingress.yaml new file mode 100644 index 0000000..ce38a94 --- /dev/null +++ b/applications/basic-test/gateway-ip-ingress.yaml @@ -0,0 +1,19 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: gateway-ip-ingress + namespace: mixingx + annotations: + traefik.ingress.kubernetes.io/router.entrypoints: web +spec: + ingressClassName: traefik + rules: + - http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: gateway-service + port: + number: 8080 diff --git a/bootstrap/mixingx-basic-test-root.yaml b/bootstrap/mixingx-basic-test-root.yaml index bb416fb..ea995f7 100644 --- a/bootstrap/mixingx-basic-test-root.yaml +++ b/bootstrap/mixingx-basic-test-root.yaml @@ -1,3 +1,17 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: longhorn-system + annotations: + argocd.argoproj.io/sync-wave: "-1" +--- +apiVersion: v1 +kind: Namespace +metadata: + name: mixingx + annotations: + argocd.argoproj.io/sync-wave: "-1" +--- apiVersion: argoproj.io/v1alpha1 kind: Application metadata: diff --git a/environments/basic-test/gateway-values.yaml b/environments/basic-test/gateway-values.yaml index 3ed6bce..d46ca6c 100644 --- a/environments/basic-test/gateway-values.yaml +++ b/environments/basic-test/gateway-values.yaml @@ -4,7 +4,4 @@ gateway: rbac: true ingress: - enabled: true - domain: app.mixingx.local - gatewayService: gateway-service - gatewayPort: 8080 + enabled: false