From a820bad2971d4c77c97cf908d7945be10335dfb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=8D=9A=E6=96=87?= Date: Tue, 17 Jun 2025 12:32:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E4=BE=8B=20demo=20=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deployment.yaml | 64 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/deployment.yaml b/deployment.yaml index ade4e641..09357562 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -253,3 +253,67 @@ spec: - protocol: TCP port: 48084 targetPort: 48084 +--- +# yudao-module-template +apiVersion: apps/v1 +kind: Deployment +metadata: + namespace: ns-f16a3067ca7b434aad127d15eac82503 + name: yudao-module-template + labels: + app: yudao-module-template + annotations: + version: "VERSION_PLACEHOLDER" + description: DESC_PLACEHOLDER + rollout.kubernetes.io/change-cause: "DESC_PLACEHOLDER:VERSION_PLACEHOLDER" +spec: + replicas: 1 + selector: + matchLabels: + app: yudao-module-template + template: + metadata: + labels: + app: yudao-module-template + spec: + containers: + - name: yudao-module-template + image: 172.16.46.66:10043/yudao/yudao-module-template:20250613031406 + imagePullPolicy: Always + env: + - name: TZ + value: Asia/Shanghai + readinessProbe: + httpGet: + path: /actuator/health + port: 48100 + initialDelaySeconds: 10 + periodSeconds: 5 + failureThreshold: 3 + livenessProbe: + httpGet: + path: /actuator/health + port: 48100 + 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-template +spec: + type: ClusterIP + selector: + app: yudao-module-template + ports: + - protocol: TCP + port: 48100 + targetPort: 48100