deploy: 发布 MES 内部 CDN 与前端

This commit is contained in:
deploy-local 2026-10-03 17:30:50 +08:00
parent 1ed2e73dbf
commit 1293788c2a
2 changed files with 75 additions and 1 deletions

View File

@ -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:

View File

@ -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