瀏覽代碼

[CI SKIP]

robert 1 年之前
父節點
當前提交
48a867faa5
共有 1 個文件被更改,包括 5 次插入38 次删除
  1. 5 38
      deploy.yaml

+ 5 - 38
deploy.yaml

@@ -69,45 +69,12 @@ spec:
           tcpSocket:
           tcpSocket:
             port: 8080
             port: 8080
           initialDelaySeconds: 45
           initialDelaySeconds: 45
-          periodSeconds: 15
+          periodSeconds: 20
         readinessProbe:
         readinessProbe:
           tcpSocket:
           tcpSocket:
             port: 8080
             port: 8080
           initialDelaySeconds: 45
           initialDelaySeconds: 45
-          periodSeconds: 15
-      - name: book-api-nginx
-        image: hub.evbj.easou.com/pro/book-api-nginx:v1.0.2
-        imagePullPolicy: IfNotPresent
-        ports:
-        - containerPort: 80
-          name: port
-        lifecycle:
-          preStop:
-            exec:
-              command: ["/bin/sh","-c","supervisorctl stop all"]
-        volumeMounts:
-        - name: volume
-          mountPath: /data
-        livenessProbe:
-          tcpSocket:
-            port: 80
-          initialDelaySeconds: 45
-          periodSeconds: 15
-        readinessProbe:
-          tcpSocket:
-            port: 80
-          initialDelaySeconds: 45
-          periodSeconds: 15
-      - name: book-api-flume
-        image: hub.evbj.easou.com/dev/book-api-flume:v1.0.1
-        imagePullPolicy: IfNotPresent
-        lifecycle:
-          preStop:
-            exec:
-              command: ["/bin/sh","-c","supervisorctl stop all"]
-        volumeMounts:
-        - name: volume
-          mountPath: /data
+          periodSeconds: 20
   updateStrategy:
   updateStrategy:
     type: RollingUpdate
     type: RollingUpdate
     rollingUpdate:
     rollingUpdate:
@@ -134,8 +101,8 @@ metadata:
 spec:
 spec:
   type: NodePort
   type: NodePort
   ports:
   ports:
-  - port: 80
-    targetPort: 80
+  - port: 8080
+    targetPort: 8080
     nodePort: 31022
     nodePort: 31022
   selector:
   selector:
     app: global-book-api
     app: global-book-api
@@ -160,5 +127,5 @@ spec:
               service:
               service:
                 name: global-book-api-svc
                 name: global-book-api-svc
                 port:
                 port:
-                  number: 80
+                  number: 8080
   ingressClassName: nginx
   ingressClassName: nginx