Prechádzať zdrojové kódy

deploy qa/offline-process-charge-callback:r182682 连续畅读

pmrd 2 rokov pred
rodič
commit
9199fe4a3d
3 zmenil súbory, kde vykonal 14 pridanie a 12 odobranie
  1. 4 4
      .drone.yml
  2. 1 1
      Dockerfile
  3. 9 7
      deploy-tmp.yaml

+ 4 - 4
.drone.yml

@@ -21,7 +21,7 @@ steps:
   environment:
     JNLP_ENV: qa
     JNLP_REPLICAS: 1
-    JNLP_TAG: r182680
+    JNLP_TAG: r182682
     JNLP_VERSION: v1  # default v1, v2 for canary
     DEPLOY_ENV: k8s-3 # 可以选择把应用部署到集群:k8s-1 or k8s-2
     JNLP_REPO: hub.evbj.easou.com
@@ -56,8 +56,8 @@ steps:
     corpid: ww419ee4063735e1c0
     corp_secret: zpiRBLETH9eLwIMQ4eJ_r_dcm3BPSGeLHvTcft8Ot-M
     agent_id: 1000004
-    title: "Pipeline qa/offline-process-charge-callback:r182680 Success"
-    description: "${DRONE_BUILD_LINK} qa/offline-process-charge-callback:r182680 部署完成 连续畅读"
+    title: "Pipeline qa/offline-process-charge-callback:r182682 Success"
+    description: "${DRONE_BUILD_LINK} qa/offline-process-charge-callback:r182682 部署完成 连续畅读"
     msg_url: ${DRONE_BUILD_LINK}
     btn_txt: "否"
   when:
@@ -70,7 +70,7 @@ steps:
     corpid: ww419ee4063735e1c0
     corp_secret: zpiRBLETH9eLwIMQ4eJ_r_dcm3BPSGeLHvTcft8Ot-M
     agent_id: 1000004
-    title: "Pipeline qa/offline-process-charge-callback:r182680 Failure"
+    title: "Pipeline qa/offline-process-charge-callback:r182682 Failure"
     description: "${DRONE_BUILD_LINK} 部署失败,请检查配置!连续畅读"
     msg_url: ${DRONE_BUILD_LINK}
     btn_txt: "否"

+ 1 - 1
Dockerfile

@@ -1 +1 @@
-FROM hub.evbj.easou.com/qa/offline-process-charge-callback:r182680
+FROM hub.evbj.easou.com/qa/offline-process-charge-callback:r182682

+ 9 - 7
deploy-tmp.yaml

@@ -54,7 +54,7 @@ spec:
               topologyKey: kubernetes.io/hostname
       containers:
         - name: offline-process-charge-callback
-          image: hub.evbj.easou.com/qa/offline-process-charge-callback:r182680
+          image: hub.evbj.easou.com/qa/offline-process-charge-callback:r182682
           imagePullPolicy: IfNotPresent
           env:
             - name: MY_NODE_NAME
@@ -152,19 +152,21 @@ spec:
 apiVersion: networking.k8s.io/v1
 kind: Ingress
 metadata:
-  name: $DRONE_REPO_NAME-ingress
-  namespace: $JNLP_ENV
-  annotations:
-    kubernetes.io/ingress.class: $JNLP_INGRESS
+  name: offline-process-charge-callback-ingress
+  namespace: qa
 spec:
+  ingressClassName: nginx
   rules:
     - host: qa-offline-process-charge-callback.ieasou.cn
       http:
         paths:
           - path: /
+            pathType: ImplementationSpecific
             backend:
-              serviceName: offline-process-charge-callback-svc
-              servicePort: 80
+              service:
+                name: offline-process-charge-callback-svc
+                port:
+                  number: 80
 ---
 apiVersion: v1
 kind: ConfigMap