|
@@ -73,6 +73,39 @@ spec:
|
|
|
port: 8080
|
|
|
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/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:
|
|
|
type: RollingUpdate
|
|
|
rollingUpdate:
|