diff --git a/deployment.yaml b/deployment.yaml index fc45a12d..d4a8c132 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -25,13 +25,28 @@ spec: value: Asia/Shanghai ports: - containerPort: 48080 + readinessProbe: + httpGet: + path: /actuator/health + port: 48080 + initialDelaySeconds: 10 + periodSeconds: 5 + failureThreshold: 3 + livenessProbe: + httpGet: + path: /actuator/health + port: 48080 + initialDelaySeconds: 30 + periodSeconds: 10 + failureThreshold: 5 resources: requests: - cpu: "1000m" + cpu: "500m" memory: "1024Mi" limits: - cpu: "1000m" + cpu: "700m" memory: "2048Mi" + terminationGracePeriodSeconds: 30 --- apiVersion: v1 kind: Service @@ -93,10 +108,10 @@ spec: failureThreshold: 5 resources: requests: - cpu: "1000m" + cpu: "500m" memory: "1024Mi" limits: - cpu: "1000m" + cpu: "700m" memory: "2048Mi" terminationGracePeriodSeconds: 30 strategy: @@ -111,13 +126,14 @@ metadata: namespace: ns-d6a0e78ebd674c279614498e4c57b133 name: zt-module-infra spec: - type: ClusterIP + type: NodePort selector: app: zt-module-infra ports: - protocol: TCP port: 48082 targetPort: 48082 + nodePort: 30092 --- # zt-module-system apiVersion: apps/v1 @@ -164,10 +180,10 @@ spec: failureThreshold: 5 resources: requests: - cpu: "1000m" + cpu: "500m" memory: "1024Mi" limits: - cpu: "1000m" + cpu: "700m" memory: "2048Mi" terminationGracePeriodSeconds: 30 strategy: @@ -182,13 +198,14 @@ metadata: namespace: ns-d6a0e78ebd674c279614498e4c57b133 name: zt-module-system spec: - type: ClusterIP + type: NodePort selector: app: zt-module-system ports: - protocol: TCP port: 48081 targetPort: 48081 + nodePort: 30091 --- # zt-module-bpm apiVersion: apps/v1 @@ -235,10 +252,10 @@ spec: failureThreshold: 5 resources: requests: - cpu: "1000m" + cpu: "500m" memory: "1024Mi" limits: - cpu: "1000m" + cpu: "700m" memory: "2048Mi" terminationGracePeriodSeconds: 30 strategy: @@ -253,13 +270,14 @@ metadata: namespace: ns-d6a0e78ebd674c279614498e4c57b133 name: zt-module-bpm spec: - type: ClusterIP + type: NodePort selector: app: zt-module-bpm ports: - protocol: TCP port: 48083 targetPort: 48083 + nodePort: 30093 --- # zt-module-report apiVersion: apps/v1 @@ -306,10 +324,10 @@ spec: failureThreshold: 5 resources: requests: - cpu: "1000m" + cpu: "500m" memory: "1024Mi" limits: - cpu: "1000m" + cpu: "700m" memory: "2048Mi" terminationGracePeriodSeconds: 30 strategy: @@ -324,13 +342,14 @@ metadata: namespace: ns-d6a0e78ebd674c279614498e4c57b133 name: zt-module-report spec: - type: ClusterIP + type: NodePort selector: app: zt-module-report ports: - protocol: TCP port: 48084 targetPort: 48084 + nodePort: 30094 --- # zt-module-template apiVersion: apps/v1 @@ -377,10 +396,10 @@ spec: failureThreshold: 5 resources: requests: - cpu: "1000m" + cpu: "500m" memory: "1024Mi" limits: - cpu: "1000m" + cpu: "700m" memory: "2048Mi" terminationGracePeriodSeconds: 30 strategy: @@ -395,10 +414,11 @@ metadata: namespace: ns-d6a0e78ebd674c279614498e4c57b133 name: zt-module-template spec: - type: ClusterIP + type: NodePort selector: app: zt-module-template ports: - protocol: TCP port: 48100 targetPort: 48100 + nodePort: 30090