chore(k8s): 更新部署配置中的命名空间和 Istio 代理设置
- 将所有资源的命名空间从 ns-d6a0e78ebd674c279614498e4c57b133 更新为 ns-f16a3067ca7b434aad127d15eac82503 - 为 zt-gateway、zt-module-infra、zt-module-bpm、zt-module-databus 和 zt-module-template 部署添加 Istio 代理配置注解 - 将多个部署的 dnsPolicy 从 None 更改为 ClusterFirst - 更新了包括服务和部署在内的所有 Kubernetes 资源的命名空间引用
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
#apiVersion: apps/v1
|
#apiVersion: apps/v1
|
||||||
#kind: Deployment
|
#kind: Deployment
|
||||||
#metadata:
|
#metadata:
|
||||||
# namespace: ns-d6a0e78ebd674c279614498e4c57b133
|
# namespace: ns-f16a3067ca7b434aad127d15eac82503
|
||||||
# name: zt-gateway
|
# name: zt-gateway
|
||||||
# labels:
|
# labels:
|
||||||
# app: zt-gateway
|
# app: zt-gateway
|
||||||
@@ -13,6 +13,8 @@
|
|||||||
# app: zt-gateway
|
# app: zt-gateway
|
||||||
# template:
|
# template:
|
||||||
# metadata:
|
# metadata:
|
||||||
|
# annotations:
|
||||||
|
# proxy.istio.io/config: '{"holdApplicationUntilProxyStarts": true}'
|
||||||
# labels:
|
# labels:
|
||||||
# app: zt-gateway
|
# app: zt-gateway
|
||||||
# spec:
|
# spec:
|
||||||
@@ -51,7 +53,7 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
namespace: ns-d6a0e78ebd674c279614498e4c57b133
|
namespace: ns-f16a3067ca7b434aad127d15eac82503
|
||||||
name: zt-gateway
|
name: zt-gateway
|
||||||
spec:
|
spec:
|
||||||
type: NodePort
|
type: NodePort
|
||||||
@@ -67,7 +69,7 @@ spec:
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
namespace: ns-d6a0e78ebd674c279614498e4c57b133
|
namespace: ns-f16a3067ca7b434aad127d15eac82503
|
||||||
name: zt-module-infra
|
name: zt-module-infra
|
||||||
labels:
|
labels:
|
||||||
app: zt-module-infra
|
app: zt-module-infra
|
||||||
@@ -82,10 +84,12 @@ spec:
|
|||||||
app: zt-module-infra
|
app: zt-module-infra
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
|
annotations:
|
||||||
|
proxy.istio.io/config: '{"holdApplicationUntilProxyStarts": true}'
|
||||||
labels:
|
labels:
|
||||||
app: zt-module-infra
|
app: zt-module-infra
|
||||||
spec:
|
spec:
|
||||||
dnsPolicy: None
|
dnsPolicy: ClusterFirst
|
||||||
dnsConfig:
|
dnsConfig:
|
||||||
nameservers:
|
nameservers:
|
||||||
- "172.16.36.16"
|
- "172.16.36.16"
|
||||||
@@ -128,7 +132,7 @@ spec:
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
namespace: ns-d6a0e78ebd674c279614498e4c57b133
|
namespace: ns-f16a3067ca7b434aad127d15eac82503
|
||||||
name: zt-module-infra
|
name: zt-module-infra
|
||||||
spec:
|
spec:
|
||||||
type: NodePort
|
type: NodePort
|
||||||
@@ -144,7 +148,7 @@ spec:
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
namespace: ns-d6a0e78ebd674c279614498e4c57b133
|
namespace: ns-f16a3067ca7b434aad127d15eac82503
|
||||||
name: zt-module-system
|
name: zt-module-system
|
||||||
labels:
|
labels:
|
||||||
app: zt-module-system
|
app: zt-module-system
|
||||||
@@ -173,7 +177,7 @@ spec:
|
|||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- node-3
|
- node-3
|
||||||
dnsPolicy: None
|
dnsPolicy: ClusterFirst
|
||||||
dnsConfig:
|
dnsConfig:
|
||||||
nameservers:
|
nameservers:
|
||||||
- "172.16.36.16"
|
- "172.16.36.16"
|
||||||
@@ -216,7 +220,7 @@ spec:
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
namespace: ns-d6a0e78ebd674c279614498e4c57b133
|
namespace: ns-f16a3067ca7b434aad127d15eac82503
|
||||||
name: zt-module-system
|
name: zt-module-system
|
||||||
spec:
|
spec:
|
||||||
type: NodePort
|
type: NodePort
|
||||||
@@ -232,7 +236,7 @@ spec:
|
|||||||
#apiVersion: apps/v1
|
#apiVersion: apps/v1
|
||||||
#kind: Deployment
|
#kind: Deployment
|
||||||
#metadata:
|
#metadata:
|
||||||
# namespace: ns-d6a0e78ebd674c279614498e4c57b133
|
# namespace: ns-f16a3067ca7b434aad127d15eac82503
|
||||||
# name: zt-module-bpm
|
# name: zt-module-bpm
|
||||||
# labels:
|
# labels:
|
||||||
# app: zt-module-bpm
|
# app: zt-module-bpm
|
||||||
@@ -247,6 +251,8 @@ spec:
|
|||||||
# app: zt-module-bpm
|
# app: zt-module-bpm
|
||||||
# template:
|
# template:
|
||||||
# metadata:
|
# metadata:
|
||||||
|
# annotations:
|
||||||
|
# proxy.istio.io/config: '{"holdApplicationUntilProxyStarts": true}'
|
||||||
# labels:
|
# labels:
|
||||||
# app: zt-module-bpm
|
# app: zt-module-bpm
|
||||||
# spec:
|
# spec:
|
||||||
@@ -288,7 +294,7 @@ spec:
|
|||||||
#apiVersion: v1
|
#apiVersion: v1
|
||||||
#kind: Service
|
#kind: Service
|
||||||
#metadata:
|
#metadata:
|
||||||
# namespace: ns-d6a0e78ebd674c279614498e4c57b133
|
# namespace: ns-f16a3067ca7b434aad127d15eac82503
|
||||||
# name: zt-module-bpm
|
# name: zt-module-bpm
|
||||||
#spec:
|
#spec:
|
||||||
# type: NodePort
|
# type: NodePort
|
||||||
@@ -304,7 +310,7 @@ spec:
|
|||||||
#apiVersion: apps/v1
|
#apiVersion: apps/v1
|
||||||
#kind: Deployment
|
#kind: Deployment
|
||||||
#metadata:
|
#metadata:
|
||||||
# namespace: ns-d6a0e78ebd674c279614498e4c57b133
|
# namespace: ns-f16a3067ca7b434aad127d15eac82503
|
||||||
# name: zt-module-report
|
# name: zt-module-report
|
||||||
# labels:
|
# labels:
|
||||||
# app: zt-module-report
|
# app: zt-module-report
|
||||||
@@ -360,7 +366,7 @@ spec:
|
|||||||
#apiVersion: v1
|
#apiVersion: v1
|
||||||
#kind: Service
|
#kind: Service
|
||||||
#metadata:
|
#metadata:
|
||||||
# namespace: ns-d6a0e78ebd674c279614498e4c57b133
|
# namespace: ns-f16a3067ca7b434aad127d15eac82503
|
||||||
# name: zt-module-report
|
# name: zt-module-report
|
||||||
#spec:
|
#spec:
|
||||||
# type: NodePort
|
# type: NodePort
|
||||||
@@ -376,7 +382,7 @@ spec:
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
namespace: ns-d6a0e78ebd674c279614498e4c57b133
|
namespace: ns-f16a3067ca7b434aad127d15eac82503
|
||||||
name: zt-module-databus
|
name: zt-module-databus
|
||||||
labels:
|
labels:
|
||||||
app: zt-module-databus
|
app: zt-module-databus
|
||||||
@@ -393,6 +399,8 @@ spec:
|
|||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: zt-module-databus
|
app: zt-module-databus
|
||||||
|
annotations:
|
||||||
|
proxy.istio.io/config: '{"holdApplicationUntilProxyStarts": true}'
|
||||||
spec:
|
spec:
|
||||||
affinity:
|
affinity:
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
@@ -403,7 +411,7 @@ spec:
|
|||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- node-3
|
- node-3
|
||||||
dnsPolicy: None
|
dnsPolicy: ClusterFirst
|
||||||
dnsConfig:
|
dnsConfig:
|
||||||
nameservers:
|
nameservers:
|
||||||
- "172.16.36.16"
|
- "172.16.36.16"
|
||||||
@@ -446,7 +454,7 @@ spec:
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
namespace: ns-d6a0e78ebd674c279614498e4c57b133
|
namespace: ns-f16a3067ca7b434aad127d15eac82503
|
||||||
name: zt-module-databus
|
name: zt-module-databus
|
||||||
spec:
|
spec:
|
||||||
type: NodePort
|
type: NodePort
|
||||||
@@ -464,7 +472,7 @@ spec:
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
namespace: ns-d6a0e78ebd674c279614498e4c57b133
|
namespace: ns-f16a3067ca7b434aad127d15eac82503
|
||||||
name: zt-module-template
|
name: zt-module-template
|
||||||
labels:
|
labels:
|
||||||
app: zt-module-template
|
app: zt-module-template
|
||||||
@@ -479,10 +487,12 @@ spec:
|
|||||||
app: zt-module-template
|
app: zt-module-template
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
|
annotations:
|
||||||
|
proxy.istio.io/config: '{"holdApplicationUntilProxyStarts": true}'
|
||||||
labels:
|
labels:
|
||||||
app: zt-module-template
|
app: zt-module-template
|
||||||
spec:
|
spec:
|
||||||
dnsPolicy: None
|
dnsPolicy: ClusterFirst
|
||||||
dnsConfig:
|
dnsConfig:
|
||||||
nameservers:
|
nameservers:
|
||||||
- "172.16.36.16"
|
- "172.16.36.16"
|
||||||
@@ -525,7 +535,7 @@ spec:
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
namespace: ns-d6a0e78ebd674c279614498e4c57b133
|
namespace: ns-f16a3067ca7b434aad127d15eac82503
|
||||||
name: zt-module-template
|
name: zt-module-template
|
||||||
spec:
|
spec:
|
||||||
type: NodePort
|
type: NodePort
|
||||||
|
|||||||
Reference in New Issue
Block a user