Эх сурвалжийг харах

deploy pro/realtime-yuewen-v2:r188518 测试是否能提交

pmrd 1 жил өмнө
parent
commit
793256e130
3 өөрчлөгдсөн 10 нэмэгдсэн , 10 устгасан
  1. 4 4
      .drone.yml
  2. 1 1
      Dockerfile
  3. 5 5
      deploy-tmp.yaml

+ 4 - 4
.drone.yml

@@ -21,7 +21,7 @@ steps:
   environment:
     JNLP_ENV: pro
     JNLP_REPLICAS: 2
-    JNLP_TAG: r188514
+    JNLP_TAG: r188518
     JNLP_VERSION: v1  # default v1, v2 for canary
     DEPLOY_ENV: k8s-1 # 可以选择把应用部署到集群:k8s-1 or k8s-2
     JNLP_REPO: hub.evbj.easou.com
@@ -54,8 +54,8 @@ steps:
     corpid: ww419ee4063735e1c0
     corp_secret: zpiRBLETH9eLwIMQ4eJ_r_dcm3BPSGeLHvTcft8Ot-M
     agent_id: 1000004
-    title: "Pipeline pro/realtime-yuewen-v2:r188514 Success"
-    description: "${DRONE_BUILD_LINK} pro/realtime-yuewen-v2:r188514 部署完成 测试是否能提交"
+    title: "Pipeline pro/realtime-yuewen-v2:r188518 Success"
+    description: "${DRONE_BUILD_LINK} pro/realtime-yuewen-v2:r188518 部署完成 测试是否能提交"
     msg_url: ${DRONE_BUILD_LINK}
     btn_txt: "否"
   when:
@@ -68,7 +68,7 @@ steps:
     corpid: ww419ee4063735e1c0
     corp_secret: zpiRBLETH9eLwIMQ4eJ_r_dcm3BPSGeLHvTcft8Ot-M
     agent_id: 1000004
-    title: "Pipeline pro/realtime-yuewen-v2:r188514 Failure"
+    title: "Pipeline pro/realtime-yuewen-v2:r188518 Failure"
     description: "${DRONE_BUILD_LINK} 部署失败,请检查配置!测试是否能提交"
     msg_url: ${DRONE_BUILD_LINK}
     btn_txt: "否"

+ 1 - 1
Dockerfile

@@ -1 +1 @@
-FROM hub.evbj.easou.com/pro/realtime-yuewen-v2:r188514
+FROM hub.evbj.easou.com/pro/realtime-yuewen-v2:r188518

+ 5 - 5
deploy-tmp.yaml

@@ -17,7 +17,7 @@ spec:
       labels:
         app: realtime-yuewen-v2
     spec:
-      terminationGracePeriodSeconds: 180
+      terminationGracePeriodSeconds: 30
       dnsPolicy: ClusterFirstWithHostNet
       dnsConfig:
         nameservers:
@@ -47,7 +47,7 @@ spec:
       #              topologyKey: kubernetes.io/hostname
       containers:
         - name: realtime-yuewen-v2
-          image: hub.evbj.easou.com/pro/realtime-yuewen-v2:r188514
+          image: hub.evbj.easou.com/pro/realtime-yuewen-v2:r188518
           imagePullPolicy: IfNotPresent
           env:
             - name: MY_NODE_NAME
@@ -89,11 +89,11 @@ spec:
                   value: admin
                 - name: password
                   value: ea1so2ua3dm4in5
-            initialDelaySeconds: 40        #60s后启动第一次探测
-            periodSeconds: 15              # 每隔10s启动一次探测
+            initialDelaySeconds: 10        #60s后启动第一次探测
+            periodSeconds: 10              # 每隔10s启动一次探测
             timeoutSeconds: 3              # 超时时间3s
             successThreshold: 1            # 成功1次即表示容器健康
-            failureThreshold: 5            # 连续5次失败,则判定容器不健康,默认3次
+            failureThreshold: 2            # 连续5次失败,则判定容器不健康,默认3次
           readinessProbe:
             tcpSocket:
               port: 8080