From 6bdce6e9bc190f9896e4dc4f3eda9d619029a646 Mon Sep 17 00:00:00 2001 From: chenbowen Date: Mon, 12 Jan 2026 13:00:36 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E6=8B=86=E5=88=86=E6=A0=B8=E5=BF=83?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E5=8F=91=E5=B8=83=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deployment-databus.yaml | 67 ++++++++++++++++++++++++++++++++++++ deployment-gateway.yaml | 74 +++++++++++++++++++++++++++++++++++++++ deployment-infra.yaml | 67 ++++++++++++++++++++++++++++++++++++ deployment-system.yaml | 76 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 284 insertions(+) create mode 100644 deployment-databus.yaml create mode 100644 deployment-gateway.yaml create mode 100644 deployment-infra.yaml create mode 100644 deployment-system.yaml diff --git a/deployment-databus.yaml b/deployment-databus.yaml new file mode 100644 index 00000000..30aee385 --- /dev/null +++ b/deployment-databus.yaml @@ -0,0 +1,67 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + namespace: ns-d6a0e78ebd674c279614498e4c57b133 + name: zt-module-databus + labels: + app: zt-module-databus + annotations: + version: "VERSION_PLACEHOLDER" + description: DESC_PLACEHOLDER + rollout.kubernetes.io/change-cause: "DESC_PLACEHOLDER:VERSION_PLACEHOLDER" +spec: + replicas: 1 + selector: + matchLabels: + app: zt-module-databus + template: + metadata: + labels: + app: zt-module-databus + spec: + dnsPolicy: None + dnsConfig: + nameservers: + - "172.16.36.16" + - "172.16.36.220" + containers: + - name: zt-module-databus + image: 172.16.46.66:10043/zt/zt-module-databus:VERSION_PLACEHOLDER + imagePullPolicy: Always + env: + - name: TZ + value: Asia/Shanghai + lifecycle: + preStop: + exec: + command: + - "/bin/sh" + - "-c" + - "sleep 35" + readinessProbe: + httpGet: + path: /actuator/health + port: 48108 + initialDelaySeconds: 100 + periodSeconds: 5 + failureThreshold: 3 + livenessProbe: + httpGet: + path: /actuator/health + port: 48108 + initialDelaySeconds: 100 + periodSeconds: 10 + failureThreshold: 5 + resources: + requests: + cpu: "500m" + memory: "1024Mi" + limits: + cpu: "700m" + memory: "2048Mi" + terminationGracePeriodSeconds: 40 + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 1 + maxUnavailable: 0 diff --git a/deployment-gateway.yaml b/deployment-gateway.yaml new file mode 100644 index 00000000..cec14d25 --- /dev/null +++ b/deployment-gateway.yaml @@ -0,0 +1,74 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + namespace: ns-d6a0e78ebd674c279614498e4c57b133 + name: zt-gateway + labels: + app: zt-gateway + annotations: + version: "VERSION_PLACEHOLDER" + description: DESC_PLACEHOLDER + rollout.kubernetes.io/change-cause: "DESC_PLACEHOLDER:VERSION_PLACEHOLDER" +spec: + replicas: 1 + selector: + matchLabels: + app: zt-gateway + template: + metadata: + labels: + app: zt-gateway + spec: + containers: + - name: zt-gateway + image: 172.16.46.66:10043/zt/zt-gateway:VERSION_PLACEHOLDER + imagePullPolicy: Always + env: + - name: TZ + value: Asia/Shanghai + lifecycle: + preStop: + exec: + command: + - "/bin/sh" + - "-c" + - "sleep 35" + ports: + - containerPort: 48080 + readinessProbe: + httpGet: + path: /actuator/health + port: 48080 + initialDelaySeconds: 100 + periodSeconds: 5 + failureThreshold: 3 + livenessProbe: + httpGet: + path: /actuator/health + port: 48080 + initialDelaySeconds: 100 + periodSeconds: 10 + failureThreshold: 5 + resources: + requests: + cpu: "500m" + memory: "1024Mi" + limits: + cpu: "800m" + memory: "2048Mi" + terminationGracePeriodSeconds: 40 +--- +apiVersion: v1 +kind: Service +metadata: + namespace: ns-d6a0e78ebd674c279614498e4c57b133 + name: zt-gateway +spec: + type: NodePort + selector: + app: zt-gateway + ports: + - protocol: TCP + port: 48080 + targetPort: 48080 + nodePort: 30081 diff --git a/deployment-infra.yaml b/deployment-infra.yaml new file mode 100644 index 00000000..dcf29886 --- /dev/null +++ b/deployment-infra.yaml @@ -0,0 +1,67 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + namespace: ns-d6a0e78ebd674c279614498e4c57b133 + name: zt-module-infra + labels: + app: zt-module-infra + annotations: + version: "VERSION_PLACEHOLDER" + description: DESC_PLACEHOLDER + rollout.kubernetes.io/change-cause: "DESC_PLACEHOLDER:VERSION_PLACEHOLDER" +spec: + replicas: 2 + selector: + matchLabels: + app: zt-module-infra + template: + metadata: + labels: + app: zt-module-infra + spec: + dnsPolicy: None + dnsConfig: + nameservers: + - "172.16.36.16" + - "172.16.36.220" + containers: + - name: zt-module-infra + image: 172.16.46.66:10043/zt/zt-module-infra:VERSION_PLACEHOLDER + imagePullPolicy: Always + env: + - name: TZ + value: Asia/Shanghai + lifecycle: + preStop: + exec: + command: + - "/bin/sh" + - "-c" + - "sleep 35" + readinessProbe: + httpGet: + path: /actuator/health + port: 48082 + initialDelaySeconds: 100 + periodSeconds: 5 + failureThreshold: 3 + livenessProbe: + httpGet: + path: /actuator/health + port: 48082 + initialDelaySeconds: 100 + periodSeconds: 10 + failureThreshold: 5 + resources: + requests: + cpu: "500m" + memory: "1024Mi" + limits: + cpu: "800m" + memory: "2048Mi" + terminationGracePeriodSeconds: 40 + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 1 + maxUnavailable: 0 diff --git a/deployment-system.yaml b/deployment-system.yaml new file mode 100644 index 00000000..678ccc15 --- /dev/null +++ b/deployment-system.yaml @@ -0,0 +1,76 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + namespace: ns-d6a0e78ebd674c279614498e4c57b133 + name: zt-module-system + labels: + app: zt-module-system + annotations: + version: "VERSION_PLACEHOLDER" + description: DESC_PLACEHOLDER + rollout.kubernetes.io/change-cause: "DESC_PLACEHOLDER:VERSION_PLACEHOLDER" +spec: + replicas: 1 + selector: + matchLabels: + app: zt-module-system + template: + metadata: + labels: + app: zt-module-system + spec: + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: kubernetes.io/hostname + operator: In + values: + - worker04 + dnsPolicy: None + dnsConfig: + nameservers: + - "172.16.36.16" + - "172.16.36.220" + containers: + - name: zt-module-system + image: 172.16.46.66:10043/zt/zt-module-system:VERSION_PLACEHOLDER + imagePullPolicy: Always + env: + - name: TZ + value: Asia/Shanghai + lifecycle: + preStop: + exec: + command: + - "/bin/sh" + - "-c" + - "sleep 35" + readinessProbe: + httpGet: + path: /actuator/health + port: 48081 + initialDelaySeconds: 100 + periodSeconds: 5 + failureThreshold: 3 + livenessProbe: + httpGet: + path: /actuator/health + port: 48081 + initialDelaySeconds: 100 + periodSeconds: 10 + failureThreshold: 5 + resources: + requests: + cpu: "500m" + memory: "1024Mi" + limits: + cpu: "800m" + memory: "2048Mi" + terminationGracePeriodSeconds: 40 + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 1 + maxUnavailable: 0