添加集群资源配置文件

This commit is contained in:
陈博文
2025-06-13 14:12:22 +08:00
parent 9631b62152
commit a91120a6bc

239
deployment.yaml Normal file
View File

@@ -0,0 +1,239 @@
# yudao-module-infra
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: ns-f16a3067ca7b434aad127d15eac82503
name: yudao-module-infra
labels:
app: yudao-module-infra
spec:
replicas: 1
selector:
matchLabels:
app: yudao-module-infra
template:
metadata:
labels:
app: yudao-module-infra
spec:
containers:
- name: yudao-module-infra
image: 172.16.46.66:10043/yudao/yudao-module-infra:20250613031406
imagePullPolicy: Always
env:
- name: TZ
value: Asia/Shanghai
readinessProbe:
httpGet:
path: /actuator/health
port: 48082
initialDelaySeconds: 10
periodSeconds: 5
failureThreshold: 3
livenessProbe:
httpGet:
path: /actuator/health
port: 48082
initialDelaySeconds: 30
periodSeconds: 10
failureThreshold: 5
terminationGracePeriodSeconds: 30
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
---
apiVersion: v1
kind: Service
metadata:
namespace: ns-f16a3067ca7b434aad127d15eac82503
name: yudao-module-infra
spec:
type: ClusterIP
selector:
app: yudao-module-infra
ports:
- protocol: TCP
port: 48082
targetPort: 48082
---
# yudao-module-system
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: ns-f16a3067ca7b434aad127d15eac82503
name: yudao-module-system
labels:
app: yudao-module-system
spec:
replicas: 1
selector:
matchLabels:
app: yudao-module-system
template:
metadata:
labels:
app: yudao-module-system
spec:
containers:
- name: yudao-module-system
image: 172.16.46.66:10043/yudao/yudao-module-system:20250613031406
imagePullPolicy: Always
env:
- name: TZ
value: Asia/Shanghai
readinessProbe:
httpGet:
path: /actuator/health
port: 48081
initialDelaySeconds: 10
periodSeconds: 5
failureThreshold: 3
livenessProbe:
httpGet:
path: /actuator/health
port: 48081
initialDelaySeconds: 30
periodSeconds: 10
failureThreshold: 5
terminationGracePeriodSeconds: 30
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
---
apiVersion: v1
kind: Service
metadata:
namespace: ns-f16a3067ca7b434aad127d15eac82503
name: yudao-module-system
spec:
type: ClusterIP
selector:
app: yudao-module-system
ports:
- protocol: TCP
port: 48081
targetPort: 48081
---
# yudao-module-bpm
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: ns-f16a3067ca7b434aad127d15eac82503
name: yudao-module-bpm
labels:
app: yudao-module-bpm
spec:
replicas: 1
selector:
matchLabels:
app: yudao-module-bpm
template:
metadata:
labels:
app: yudao-module-bpm
spec:
containers:
- name: yudao-module-bpm
image: 172.16.46.66:10043/yudao/yudao-module-bpm:20250613031406
imagePullPolicy: Always
env:
- name: TZ
value: Asia/Shanghai
readinessProbe:
httpGet:
path: /actuator/health
port: 48083
initialDelaySeconds: 10
periodSeconds: 5
failureThreshold: 3
livenessProbe:
httpGet:
path: /actuator/health
port: 48083
initialDelaySeconds: 30
periodSeconds: 10
failureThreshold: 5
terminationGracePeriodSeconds: 30
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
---
apiVersion: v1
kind: Service
metadata:
namespace: ns-f16a3067ca7b434aad127d15eac82503
name: yudao-module-bpm
spec:
type: ClusterIP
selector:
app: yudao-module-bpm
ports:
- protocol: TCP
port: 48083
targetPort: 48083
---
# yudao-module-report
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: ns-f16a3067ca7b434aad127d15eac82503
name: yudao-module-report
labels:
app: yudao-module-report
spec:
replicas: 1
selector:
matchLabels:
app: yudao-module-report
template:
metadata:
labels:
app: yudao-module-report
spec:
containers:
- name: yudao-module-report
image: 172.16.46.66:10043/yudao/yudao-module-report:20250613031406
imagePullPolicy: Always
env:
- name: TZ
value: Asia/Shanghai
readinessProbe:
httpGet:
path: /actuator/health
port: 48084
initialDelaySeconds: 10
periodSeconds: 5
failureThreshold: 3
livenessProbe:
httpGet:
path: /actuator/health
port: 48084
initialDelaySeconds: 30
periodSeconds: 10
failureThreshold: 5
terminationGracePeriodSeconds: 30
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
---
apiVersion: v1
kind: Service
metadata:
namespace: ns-f16a3067ca7b434aad127d15eac82503
name: yudao-module-report
spec:
type: ClusterIP
selector:
app: yudao-module-report
ports:
- protocol: TCP
port: 48084
targetPort: 48084