From 2d7ad8edf3bdeb9c87e0aa57a2314a6aeeb63094 Mon Sep 17 00:00:00 2001 From: owen Date: Sun, 16 Mar 2025 22:41:58 +0800 Subject: [PATCH] 1 --- gpdev/ingress.yaml | 7 +++---- gpdev/kustomization.yaml | 4 +++- gpdev/patch/market-endpoints_patch.yaml | 9 +++++++++ gpdev/patch/market-service_patch.yaml | 9 +++++++++ 4 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 gpdev/patch/market-endpoints_patch.yaml create mode 100644 gpdev/patch/market-service_patch.yaml diff --git a/gpdev/ingress.yaml b/gpdev/ingress.yaml index c4a2f8f..fb0c21c 100644 --- a/gpdev/ingress.yaml +++ b/gpdev/ingress.yaml @@ -7,7 +7,6 @@ metadata: nginx.ingress.kubernetes.io/proxy-body-size: "10m" nginx.ingress.kubernetes.io/use-forwarded-headers: "true" nginx.ingress.kubernetes.io/rewrite-target: / - nginx.ingress.kubernetes.io/upstream-vhost: "43.139.60.86" spec: rules: - host: updater.gpdev.qq.com @@ -34,9 +33,9 @@ spec: pathType: Prefix backend: service: - name: external-service + name: stock2-java-market-service port: - number: 8188 + number: 80 - host: h5red.gpdev.qq.com http: paths: @@ -60,7 +59,7 @@ spec: service: name: external-service port: - number: 8188 + number: 80 - host: h5blue.gpdev.qq.com http: paths: diff --git a/gpdev/kustomization.yaml b/gpdev/kustomization.yaml index c727390..baf97d3 100644 --- a/gpdev/kustomization.yaml +++ b/gpdev/kustomization.yaml @@ -35,4 +35,6 @@ patches: - path: patch/h5blue-deployment_patch.yaml - path: patch/h5gold-deployment_patch.yaml - path: patch/h5red-deployment_patch.yaml - - path: patch/admin-deployment_patch.yaml \ No newline at end of file + - path: patch/admin-deployment_patch.yaml + - path: patch/market-endpoints_patch.yaml + - path: patch/market-service_patch.yaml \ No newline at end of file diff --git a/gpdev/patch/market-endpoints_patch.yaml b/gpdev/patch/market-endpoints_patch.yaml new file mode 100644 index 0000000..f0c3cc2 --- /dev/null +++ b/gpdev/patch/market-endpoints_patch.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Endpoints +metadata: + name: external-service +subsets: + - addresses: + - ip: 43.139.60.86 # 你的外部服务器 IP + ports: + - port: 8188 # 目标服务器端口 \ No newline at end of file diff --git a/gpdev/patch/market-service_patch.yaml b/gpdev/patch/market-service_patch.yaml new file mode 100644 index 0000000..9898648 --- /dev/null +++ b/gpdev/patch/market-service_patch.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Service +metadata: + name: external-service +spec: + ports: + - protocol: TCP + port: 8188 # 必须与 Endpoints 端口一致 + targetPort: 80 \ No newline at end of file