Explorar el Código

chore: 修改k8s发布配置

Marko552 hace 3 años
padre
commit
65a84ec5aa

+ 1 - 1
abi-cloud-qr-platform-server/src/main/java/com/abi/qms/platform/service/impl/FactoryServiceImpl.java

@@ -471,7 +471,7 @@ public class FactoryServiceImpl implements FactoryService {
 
         //描述
         if (StringUtils.isBlank(factoryProperty.getDescription()) && factoryProperty.getDescription().length() > 50) {
-            errorMessage.append("描述").append("超出5o限制,");
+            errorMessage.append("描述").append("超出50限制,");
         }
 
         return errorMessage.toString();

+ 52 - 0
deployment-dev.yaml

@@ -0,0 +1,52 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+  name: abi-cloud-qr-platform-service
+  labels:
+    app: abi-cloud-qr-platform-service
+spec:
+  replicas: 1
+  strategy:
+    type: RollingUpdate
+    rollingUpdate:
+      maxSurge: 1
+      maxUnavailable: 25%
+  selector:
+    matchLabels:
+      app: abi-cloud-qr-platform-service
+  template:
+    metadata:
+      labels:
+        app: abi-cloud-qr-platform-service
+    spec:
+      containers:
+        - name: abi-cloud-qr-platform-service
+          image: registry-vpc.cn-shanghai.aliyuncs.com/ab-inbev-apac/abi-cloud-qr-platform-service:${currentVersion}
+          #image: ${image_tag}
+          imagePullPolicy: Always
+          env:
+            - name: SPRING_PROFILES_ACTIVE
+              valueFrom:
+                configMapKeyRef:
+                  name: env
+                  key: spring.profiles.active
+            # Time Zone config
+            - name: TZ
+              value: Asia/Shanghai
+            - name: aliyun_logs_abi-cloud-qr-platform-service-center-log
+              value: stdout
+          ports:
+            - containerPort: 8080
+          readinessProbe:
+            tcpSocket:
+              port: 8080
+            initialDelaySeconds: 30
+            periodSeconds: 10
+          volumeMounts:
+            - mountPath: /app/tmp
+              name: tmp-volume
+      volumes:
+        - name: tmp-volume
+          emptyDir: { }
+      imagePullSecrets:
+        - name: acr-credential-27b7396c3bc51e6df6ffbf8189648a39

+ 1 - 1
deployment.yaml

@@ -21,7 +21,7 @@ spec:
     spec:
       containers:
         - name: abi-cloud-qr-platform-service
-          image: registry-vpc.cn-shanghai.aliyuncs.com/ab-inbev-apac/abi-cloud-qr-platform-service:${currentVersion}
+          image: registry-vpc.cn-shanghai.aliyuncs.com/ab-inbev-apac/abi-cloud-qr-platform-service:#version_num#
           #image: ${image_tag}
           imagePullPolicy: Always
           env: