|
@@ -3,20 +3,20 @@ apiVersion: apps.kruise.io/v1beta1
|
|
|
#apiVersion: apps/v1
|
|
|
kind: StatefulSet
|
|
|
metadata:
|
|
|
- name: book-api-canary
|
|
|
+ name: global-book-api-canary
|
|
|
namespace: book-api
|
|
|
labels:
|
|
|
- app: book-api
|
|
|
+ app: global-book-api
|
|
|
spec:
|
|
|
- serviceName: book-api-canary
|
|
|
+ serviceName: global-book-api-canary
|
|
|
replicas: 1
|
|
|
selector:
|
|
|
matchLabels:
|
|
|
- app: book-api-canary
|
|
|
+ app: global-book-api-canary
|
|
|
template:
|
|
|
metadata:
|
|
|
labels:
|
|
|
- app: book-api-canary
|
|
|
+ app: global-book-api-canary
|
|
|
spec:
|
|
|
hostNetwork: true
|
|
|
readinessGates:
|
|
@@ -50,7 +50,7 @@ spec:
|
|
|
- name: volume
|
|
|
mountPath: /data
|
|
|
containers:
|
|
|
- - name: book-api-canary
|
|
|
+ - name: global-book-api-canary
|
|
|
image: hub.evbj.easou.com/dev/book-api:v3.1base
|
|
|
imagePullPolicy: Always
|
|
|
ports:
|
|
@@ -92,10 +92,10 @@ spec:
|
|
|
apiVersion: v1
|
|
|
kind: Service
|
|
|
metadata:
|
|
|
- name: book-api-canary-svc
|
|
|
+ name: global-book-api-canary-svc
|
|
|
namespace: book-api
|
|
|
labels:
|
|
|
- app: book-api--canary-svc
|
|
|
+ app: global-book-api-canary-svc
|
|
|
spec:
|
|
|
type: NodePort
|
|
|
ports:
|
|
@@ -103,7 +103,7 @@ spec:
|
|
|
targetPort: 8080
|
|
|
nodePort: 30540
|
|
|
selector:
|
|
|
- app: book-api-canary
|
|
|
+ app: global-book-api-canary
|
|
|
---
|
|
|
#apiVersion: networking.k8s.io/v1
|
|
|
#kind: Ingress
|