From 1293788c2a9b07d807a696cc71f97ecba1e8a2ca Mon Sep 17 00:00:00 2001 From: deploy-local Date: Sat, 3 Oct 2026 17:30:50 +0800 Subject: [PATCH] =?UTF-8?q?deploy:=20=E5=8F=91=E5=B8=83=20MES=20=E5=86=85?= =?UTF-8?q?=E9=83=A8=20CDN=20=E4=B8=8E=E5=89=8D=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- prd/imes-custom-nlv-ui.yaml | 10 +++++- prd/imes-internal-cdn.yaml | 66 +++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 prd/imes-internal-cdn.yaml diff --git a/prd/imes-custom-nlv-ui.yaml b/prd/imes-custom-nlv-ui.yaml index a9eab36..cb89204 100644 --- a/prd/imes-custom-nlv-ui.yaml +++ b/prd/imes-custom-nlv-ui.yaml @@ -19,6 +19,14 @@ data: gzip_vary on; client_max_body_size 100M; + location /internal-cdn/ { + proxy_pass http://imes-internal-cdn/; + proxy_http_version 1.1; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + location = /api/visual-global/list { proxy_pass http://imes-basic-mom-report-dashboard:6071/dashboard/visual/list; proxy_connect_timeout 240s; @@ -125,7 +133,7 @@ spec: fieldRef: apiVersion: v1 fieldPath: metadata.name - image: 192.168.100.49:30002/prd/imes-custom-nlv-ui:20260917145959 + image: 192.168.100.49:30002/prd/imes-custom-nlv-ui:20261003172112 imagePullPolicy: IfNotPresent name: nlv-ui ports: diff --git a/prd/imes-internal-cdn.yaml b/prd/imes-internal-cdn.yaml new file mode 100644 index 0000000..f36e6a1 --- /dev/null +++ b/prd/imes-internal-cdn.yaml @@ -0,0 +1,66 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + labels: + app: imes-internal-cdn + name: imes-internal-cdn + namespace: prd +spec: + replicas: 2 + selector: + matchLabels: + app: imes-internal-cdn + template: + metadata: + labels: + app: imes-internal-cdn + spec: + containers: + - image: 192.168.100.49:30002/prd/imes-internal-cdn:20261003172112 + imagePullPolicy: IfNotPresent + name: internal-cdn + ports: + - containerPort: 80 + protocol: TCP + startupProbe: + httpGet: + path: /healthz + port: 80 + failureThreshold: 30 + periodSeconds: 2 + readinessProbe: + httpGet: + path: /healthz + port: 80 + failureThreshold: 2 + periodSeconds: 5 + livenessProbe: + httpGet: + path: /healthz + port: 80 + failureThreshold: 3 + periodSeconds: 10 + resources: + requests: + cpu: 10m + memory: 32Mi + limits: + cpu: 200m + memory: 128Mi +--- +apiVersion: v1 +kind: Service +metadata: + labels: + app: imes-internal-cdn + name: imes-internal-cdn + namespace: prd +spec: + selector: + app: imes-internal-cdn + ports: + - name: http + port: 80 + protocol: TCP + targetPort: 80 + type: ClusterIP