发布时,网关不在同步进行发布

This commit is contained in:
chenbowen
2025-12-08 09:34:46 +08:00
parent efd1e8a19e
commit 30b5db0617

View File

@@ -1,53 +1,53 @@
# zt-gateway
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: ns-d6a0e78ebd674c279614498e4c57b133
name: zt-gateway
labels:
app: zt-gateway
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
ports:
- containerPort: 48080
readinessProbe:
httpGet:
path: /actuator/health
port: 48080
initialDelaySeconds: 50
periodSeconds: 5
failureThreshold: 3
livenessProbe:
httpGet:
path: /actuator/health
port: 48080
initialDelaySeconds: 50
periodSeconds: 10
failureThreshold: 5
resources:
requests:
cpu: "500m"
memory: "1024Mi"
limits:
cpu: "1024m"
memory: "2048Mi"
terminationGracePeriodSeconds: 30
---
## zt-gateway
#apiVersion: apps/v1
#kind: Deployment
#metadata:
# namespace: ns-d6a0e78ebd674c279614498e4c57b133
# name: zt-gateway
# labels:
# app: zt-gateway
#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
# ports:
# - containerPort: 48080
# readinessProbe:
# httpGet:
# path: /actuator/health
# port: 48080
# initialDelaySeconds: 50
# periodSeconds: 5
# failureThreshold: 3
# livenessProbe:
# httpGet:
# path: /actuator/health
# port: 48080
# initialDelaySeconds: 50
# periodSeconds: 10
# failureThreshold: 5
# resources:
# requests:
# cpu: "500m"
# memory: "1024Mi"
# limits:
# cpu: "1024m"
# memory: "2048Mi"
# terminationGracePeriodSeconds: 30
#---
apiVersion: v1
kind: Service
metadata: