|
@@ -69,45 +69,12 @@ spec:
|
|
|
tcpSocket:
|
|
|
port: 8080
|
|
|
initialDelaySeconds: 45
|
|
|
- periodSeconds: 15
|
|
|
+ periodSeconds: 20
|
|
|
readinessProbe:
|
|
|
tcpSocket:
|
|
|
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/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:
|
|
|
type: RollingUpdate
|
|
|
rollingUpdate:
|
|
@@ -134,8 +101,8 @@ metadata:
|
|
|
spec:
|
|
|
type: NodePort
|
|
|
ports:
|
|
|
- - port: 80
|
|
|
- targetPort: 80
|
|
|
+ - port: 8080
|
|
|
+ targetPort: 8080
|
|
|
nodePort: 31022
|
|
|
selector:
|
|
|
app: global-book-api
|
|
@@ -160,5 +127,5 @@ spec:
|
|
|
service:
|
|
|
name: global-book-api-svc
|
|
|
port:
|
|
|
- number: 80
|
|
|
+ number: 8080
|
|
|
ingressClassName: nginx
|