robert 2 жил өмнө
parent
commit
aaba41dbd1
1 өөрчлөгдсөн 33 нэмэгдсэн , 0 устгасан
  1. 33 0
      deploy-canary.yaml

+ 33 - 0
deploy-canary.yaml

@@ -73,6 +73,39 @@ spec:
             port: 8080
             port: 8080
           initialDelaySeconds: 45
           initialDelaySeconds: 45
           periodSeconds: 15
           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/pro/book-api-flume:v1.0.1
+        imagePullPolicy: IfNotPresent
+        lifecycle:
+          preStop:
+            exec:
+              command: ["/bin/sh","-c","supervisorctl stop all"]
+        volumeMounts:
+        - name: volume
+          mountPath: /data    
   updateStrategy:
   updateStrategy:
     type: RollingUpdate
     type: RollingUpdate
     rollingUpdate:
     rollingUpdate: