Files
zt-base/deployment.yaml
2025-12-27 12:19:22 +08:00

77 lines
1.7 KiB
YAML

# base-server
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: ns-766b45fbd7464ccb86d5fd046054cf0a
name: base-server
labels:
app: base-server
annotations:
version: "VERSION_PLACEHOLDER"
description: DESC_PLACEHOLDER
rollout.kubernetes.io/change-cause: "DESC_PLACEHOLDER:VERSION_PLACEHOLDER"
spec:
replicas: 1
selector:
matchLabels:
app: base-server
template:
metadata:
labels:
app: base-server
spec:
containers:
- name: base-server
image: 172.17.19.16:10043/zt-jygk/base-server:VERSION_PLACEHOLDER
env:
- name: TZ
value: Asia/Shanghai
readinessProbe:
httpGet:
path: /actuator/health
port: 48100
initialDelaySeconds: 100
periodSeconds: 5
failureThreshold: 3
livenessProbe:
httpGet:
path: /actuator/health
port: 48100
initialDelaySeconds: 100
periodSeconds: 10
failureThreshold: 5
resources:
requests:
cpu: "1000m"
memory: "1024Mi"
limits:
cpu: "1000m"
memory: "2048Mi"
terminationGracePeriodSeconds: 30
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
---
apiVersion: v1
kind: Service
metadata:
namespace: ns-766b45fbd7464ccb86d5fd046054cf0a
name: base-server
spec:
type: NodePort
selector:
app: base-server
ports:
- name: http
protocol: TCP
port: 48100
targetPort: 48100
nodePort: 30097
- name: xxl-job
protocol: TCP
port: 9999
targetPort: 9999
nodePort: 30197