From 68deec4d9dcecab7608c8bd2518026379e621c08 Mon Sep 17 00:00:00 2001 From: wuzongyong <13203449218@163.com> Date: Fri, 23 Jan 2026 17:37:03 +0800 Subject: [PATCH] =?UTF-8?q?chore(k8s):=20=E6=9B=B4=E6=96=B0=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E9=85=8D=E7=BD=AE=E4=B8=AD=E7=9A=84=E5=91=BD=E5=90=8D?= =?UTF-8?q?=E7=A9=BA=E9=97=B4=E5=92=8C=20Istio=20=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将所有资源的命名空间从 ns-d6a0e78ebd674c279614498e4c57b133 更新为 ns-f16a3067ca7b434aad127d15eac82503 - 为 zt-gateway、zt-module-infra、zt-module-bpm、zt-module-databus 和 zt-module-template 部署添加 Istio 代理配置注解 - 将多个部署的 dnsPolicy 从 None 更改为 ClusterFirst - 更新了包括服务和部署在内的所有 Kubernetes 资源的命名空间引用 --- deployment.yaml | 46 ++++++++++++++++++++++++++++------------------ 1 file changed, 28 insertions(+), 18 deletions(-) diff --git a/deployment.yaml b/deployment.yaml index a289be4a..a2d24372 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -2,7 +2,7 @@ #apiVersion: apps/v1 #kind: Deployment #metadata: -# namespace: ns-d6a0e78ebd674c279614498e4c57b133 +# namespace: ns-f16a3067ca7b434aad127d15eac82503 # name: zt-gateway # labels: # app: zt-gateway @@ -13,6 +13,8 @@ # app: zt-gateway # template: # metadata: +# annotations: +# proxy.istio.io/config: '{"holdApplicationUntilProxyStarts": true}' # labels: # app: zt-gateway # spec: @@ -51,7 +53,7 @@ apiVersion: v1 kind: Service metadata: - namespace: ns-d6a0e78ebd674c279614498e4c57b133 + namespace: ns-f16a3067ca7b434aad127d15eac82503 name: zt-gateway spec: type: NodePort @@ -67,7 +69,7 @@ spec: apiVersion: apps/v1 kind: Deployment metadata: - namespace: ns-d6a0e78ebd674c279614498e4c57b133 + namespace: ns-f16a3067ca7b434aad127d15eac82503 name: zt-module-infra labels: app: zt-module-infra @@ -82,10 +84,12 @@ spec: app: zt-module-infra template: metadata: + annotations: + proxy.istio.io/config: '{"holdApplicationUntilProxyStarts": true}' labels: app: zt-module-infra spec: - dnsPolicy: None + dnsPolicy: ClusterFirst dnsConfig: nameservers: - "172.16.36.16" @@ -128,7 +132,7 @@ spec: apiVersion: v1 kind: Service metadata: - namespace: ns-d6a0e78ebd674c279614498e4c57b133 + namespace: ns-f16a3067ca7b434aad127d15eac82503 name: zt-module-infra spec: type: NodePort @@ -144,7 +148,7 @@ spec: apiVersion: apps/v1 kind: Deployment metadata: - namespace: ns-d6a0e78ebd674c279614498e4c57b133 + namespace: ns-f16a3067ca7b434aad127d15eac82503 name: zt-module-system labels: app: zt-module-system @@ -173,7 +177,7 @@ spec: operator: In values: - node-3 - dnsPolicy: None + dnsPolicy: ClusterFirst dnsConfig: nameservers: - "172.16.36.16" @@ -216,7 +220,7 @@ spec: apiVersion: v1 kind: Service metadata: - namespace: ns-d6a0e78ebd674c279614498e4c57b133 + namespace: ns-f16a3067ca7b434aad127d15eac82503 name: zt-module-system spec: type: NodePort @@ -232,7 +236,7 @@ spec: #apiVersion: apps/v1 #kind: Deployment #metadata: -# namespace: ns-d6a0e78ebd674c279614498e4c57b133 +# namespace: ns-f16a3067ca7b434aad127d15eac82503 # name: zt-module-bpm # labels: # app: zt-module-bpm @@ -247,6 +251,8 @@ spec: # app: zt-module-bpm # template: # metadata: +# annotations: +# proxy.istio.io/config: '{"holdApplicationUntilProxyStarts": true}' # labels: # app: zt-module-bpm # spec: @@ -288,7 +294,7 @@ spec: #apiVersion: v1 #kind: Service #metadata: -# namespace: ns-d6a0e78ebd674c279614498e4c57b133 +# namespace: ns-f16a3067ca7b434aad127d15eac82503 # name: zt-module-bpm #spec: # type: NodePort @@ -304,7 +310,7 @@ spec: #apiVersion: apps/v1 #kind: Deployment #metadata: -# namespace: ns-d6a0e78ebd674c279614498e4c57b133 +# namespace: ns-f16a3067ca7b434aad127d15eac82503 # name: zt-module-report # labels: # app: zt-module-report @@ -360,7 +366,7 @@ spec: #apiVersion: v1 #kind: Service #metadata: -# namespace: ns-d6a0e78ebd674c279614498e4c57b133 +# namespace: ns-f16a3067ca7b434aad127d15eac82503 # name: zt-module-report #spec: # type: NodePort @@ -376,7 +382,7 @@ spec: apiVersion: apps/v1 kind: Deployment metadata: - namespace: ns-d6a0e78ebd674c279614498e4c57b133 + namespace: ns-f16a3067ca7b434aad127d15eac82503 name: zt-module-databus labels: app: zt-module-databus @@ -393,6 +399,8 @@ spec: metadata: labels: app: zt-module-databus + annotations: + proxy.istio.io/config: '{"holdApplicationUntilProxyStarts": true}' spec: affinity: nodeAffinity: @@ -403,7 +411,7 @@ spec: operator: In values: - node-3 - dnsPolicy: None + dnsPolicy: ClusterFirst dnsConfig: nameservers: - "172.16.36.16" @@ -446,7 +454,7 @@ spec: apiVersion: v1 kind: Service metadata: - namespace: ns-d6a0e78ebd674c279614498e4c57b133 + namespace: ns-f16a3067ca7b434aad127d15eac82503 name: zt-module-databus spec: type: NodePort @@ -464,7 +472,7 @@ spec: apiVersion: apps/v1 kind: Deployment metadata: - namespace: ns-d6a0e78ebd674c279614498e4c57b133 + namespace: ns-f16a3067ca7b434aad127d15eac82503 name: zt-module-template labels: app: zt-module-template @@ -479,10 +487,12 @@ spec: app: zt-module-template template: metadata: + annotations: + proxy.istio.io/config: '{"holdApplicationUntilProxyStarts": true}' labels: app: zt-module-template spec: - dnsPolicy: None + dnsPolicy: ClusterFirst dnsConfig: nameservers: - "172.16.36.16" @@ -525,7 +535,7 @@ spec: apiVersion: v1 kind: Service metadata: - namespace: ns-d6a0e78ebd674c279614498e4c57b133 + namespace: ns-f16a3067ca7b434aad127d15eac82503 name: zt-module-template spec: type: NodePort