|
@@ -18,18 +18,32 @@ spec:
|
|
labels:
|
|
labels:
|
|
app: book-api
|
|
app: book-api
|
|
spec:
|
|
spec:
|
|
|
|
+ readinessGates:
|
|
|
|
+ - conditionType: InPlaceUpdateReady
|
|
terminationGracePeriodSeconds: 180
|
|
terminationGracePeriodSeconds: 180
|
|
|
|
+ dnsPolicy: ClusterFirstWithHostNet
|
|
|
|
+ dnsConfig:
|
|
|
|
+ nameservers:
|
|
|
|
+ - 223.5.5.5
|
|
|
|
+ - 114.114.114.114
|
|
initContainers:
|
|
initContainers:
|
|
- name: init
|
|
- name: init
|
|
- image: $JNLP_REPO/dev/busybox
|
|
|
|
- command: ["chmod","777","-R","$JNLP_MOUNT_PATH"]
|
|
|
|
|
|
+ image: hub.evbj.easou.com/dev/busybox
|
|
|
|
+ command: ["chmod","777","-R","/data"]
|
|
|
|
+ imagePullPolicy: Always
|
|
|
|
+ volumeMounts:
|
|
|
|
+ - name: volume
|
|
|
|
+ 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_20220819-110109_RBL/ROOT.war -O /data/project/ROOT.war']
|
|
imagePullPolicy: Always
|
|
imagePullPolicy: Always
|
|
volumeMounts:
|
|
volumeMounts:
|
|
- name: volume
|
|
- name: volume
|
|
mountPath: /data
|
|
mountPath: /data
|
|
containers:
|
|
containers:
|
|
- name: book-api
|
|
- name: book-api
|
|
- image: hub.evbj.easou.com/op/v3.0.0
|
|
|
|
|
|
+ image: hub.evbj.easou.com/dev/book-api:v3.1base
|
|
imagePullPolicy: Always
|
|
imagePullPolicy: Always
|
|
ports:
|
|
ports:
|
|
- containerPort: 8080
|
|
- containerPort: 8080
|
|
@@ -78,19 +92,21 @@ spec:
|
|
selector:
|
|
selector:
|
|
app: book-api
|
|
app: book-api
|
|
---
|
|
---
|
|
-apiVersion: extensions/v1beta1
|
|
|
|
|
|
+apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
kind: Ingress
|
|
metadata:
|
|
metadata:
|
|
name: book-api-ingress
|
|
name: book-api-ingress
|
|
namespace: dev
|
|
namespace: dev
|
|
- annotations:
|
|
|
|
- kubernetes.io/ingress.class: nginx
|
|
|
|
spec:
|
|
spec:
|
|
rules:
|
|
rules:
|
|
- host: dev-book-api.ieasou.cn
|
|
- host: dev-book-api.ieasou.cn
|
|
http:
|
|
http:
|
|
paths:
|
|
paths:
|
|
- path: /
|
|
- path: /
|
|
|
|
+ pathType: Prefix
|
|
backend:
|
|
backend:
|
|
- serviceName: book-svc
|
|
|
|
- servicePort: 8080
|
|
|
|
|
|
+ service:
|
|
|
|
+ name: book-api-svc
|
|
|
|
+ port:
|
|
|
|
+ number: 8080
|
|
|
|
+ ingressClassName: nginx
|