root 2 éve
szülő
commit
790a177185
3 módosított fájl, 16 hozzáadás és 16 törlés
  1. 2 2
      .drone.yml
  2. 1 1
      Dockerfile
  3. 13 13
      deploy.yaml

+ 2 - 2
.drone.yml

@@ -1,6 +1,6 @@
 kind: pipeline
 type: kubernetes
-name: book-api
+name: book-webview
 
 clone:
   disable: true
@@ -18,7 +18,7 @@ steps:
    image: hub.evbj.easou.com/dev/drone-agent:v3.0.1
    pull: always
    environment:
-     JNLP_ENV: op
+     JNLP_ENV: dev
      JNLP_REPLICAS: 2
      JNLP_TAG: v3.0.0
      JNLP_VERSION: v1  # default v1, v2 for canary

+ 1 - 1
Dockerfile

@@ -3,7 +3,7 @@ FROM hub.evbj.easou.com/dev/book-api:v3.1base
 
 #COPY resin.properties /app/soft/resin-4.0.65/conf/resin.properties
 COPY entrypoint.sh /usr/bin/entrypoint.sh
-ADD http://10.26.22.190/release/app-web/prod-64/novelapi/3.1.278/novelapi_3.1.278_kuaiDu3.15.4Dev_B3.1.277-179663_3.1.278_20220825-112355_RBL/ROOT.war /tmp/ROOT.war
+ADD http://10.26.22.190/release/app-web/prod-64/esbookweb/1.5.413/esbookweb_1.5.413_kuaiDu3.15.4Dev_T1.5.412-179706_1.5.413_20220803-181844_RBL/ROOT.war /tmp/ROOT.war
 
 
 

+ 13 - 13
deploy.yaml

@@ -3,20 +3,20 @@ apiVersion: apps.kruise.io/v1beta1
 #apiVersion: apps/v1
 kind: StatefulSet
 metadata:
-  name: book-api
+  name: book-webview
   namespace: dev
   labels:
-    app: book-api
+    app: book-webview
 spec:
-  serviceName: book-api
+  serviceName: book-webview
   replicas: 2
   selector:
     matchLabels:
-      app: book-api
+      app: book-webview
   template:
     metadata:
       labels:
-        app: book-api
+        app: book-webview
     spec:
       readinessGates:
       - conditionType: InPlaceUpdateReady
@@ -36,14 +36,14 @@ spec:
             mountPath: /data
         - name: init-package
           image: hub.evbj.easou.com/dev/busybox
-          command: ['sh', '-c', 'rm -rf /data/project/* && wget http://10.26.22.190/release/app-web/prod-64/novelapi/3.1.278/novelapi_3.1.278_kuaiDu3.15.4Dev_B3.1.277-179663_3.1.278_20220825-112355_RBL/ROOT.war -O /data/project/ROOT.war']
+          command: ['sh', '-c', 'rm -rf /data/project/* && wget http://10.26.22.190/release/app-web/prod-64/esbookweb/1.5.413/esbookweb_1.5.413_kuaiDu3.15.4Dev_T1.5.412-179706_1.5.413_20220803-181844_RBL/ROOT.war -O /data/project/ROOT.war']
           imagePullPolicy: Always
           volumeMounts:
           - name: volume
             mountPath: /data
       containers:
-      - name: book-api
-        image: hub.evbj.easou.com/dev/book-api:v3.1base
+      - name: book-webview
+        image: hub.evbj.easou.com/dev/book-webview:v3.1base
         imagePullPolicy: Always
         ports:
         - containerPort: 8080
@@ -80,26 +80,26 @@ spec:
 apiVersion: v1
 kind: Service
 metadata:
-  name: book-api-svc
+  name: book-webview-svc
   namespace: dev
   labels:
-    app: book-api-svc
+    app: book-webview-svc
 spec:
   type: NodePort
   ports:
   - port: 8080
     targetPort: 8080
   selector:
-    app: book-api
+    app: book-webview
 ---
 apiVersion: networking.k8s.io/v1
 kind: Ingress
 metadata:
-  name: book-api-ingress
+  name: book-webview-ingress
   namespace: dev
 spec:
   rules:
-  - host: dev-book-api.ieasou.cn
+  - host: dev-book-webview.ieasou.cn
     http:
       paths:
       - path: /