|
@@ -3,20 +3,20 @@ apiVersion: apps.kruise.io/v1beta1
|
|
#apiVersion: apps/v1
|
|
#apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
kind: StatefulSet
|
|
metadata:
|
|
metadata:
|
|
- name: book-api-canary
|
|
|
|
|
|
+ name: playletapi-canary
|
|
namespace: book-api
|
|
namespace: book-api
|
|
labels:
|
|
labels:
|
|
- app: book-api
|
|
|
|
|
|
+ app: playletapi
|
|
spec:
|
|
spec:
|
|
- serviceName: book-api-canary
|
|
|
|
|
|
+ serviceName: playletapi-canary
|
|
replicas: 1
|
|
replicas: 1
|
|
selector:
|
|
selector:
|
|
matchLabels:
|
|
matchLabels:
|
|
- app: book-api-canary
|
|
|
|
|
|
+ app: playletapi-canary
|
|
template:
|
|
template:
|
|
metadata:
|
|
metadata:
|
|
labels:
|
|
labels:
|
|
- app: book-api-canary
|
|
|
|
|
|
+ app: playletapi-canary
|
|
spec:
|
|
spec:
|
|
hostNetwork: true
|
|
hostNetwork: true
|
|
readinessGates:
|
|
readinessGates:
|
|
@@ -50,7 +50,7 @@ spec:
|
|
- name: volume
|
|
- name: volume
|
|
mountPath: /data
|
|
mountPath: /data
|
|
containers:
|
|
containers:
|
|
- - name: book-api-canary
|
|
|
|
|
|
+ - name: playletapi-canary
|
|
image: hub.evbj.easou.com/dev/book-api:v3.1base
|
|
image: hub.evbj.easou.com/dev/book-api:v3.1base
|
|
imagePullPolicy: Always
|
|
imagePullPolicy: Always
|
|
ports:
|
|
ports:
|
|
@@ -92,34 +92,34 @@ spec:
|
|
apiVersion: v1
|
|
apiVersion: v1
|
|
kind: Service
|
|
kind: Service
|
|
metadata:
|
|
metadata:
|
|
- name: book-api-canary-svc
|
|
|
|
|
|
+ name: playletapi-canary-svc
|
|
namespace: book-api
|
|
namespace: book-api
|
|
labels:
|
|
labels:
|
|
- app: book-api-canary-svc
|
|
|
|
|
|
+ app: playletapi-canary-svc
|
|
spec:
|
|
spec:
|
|
type: NodePort
|
|
type: NodePort
|
|
ports:
|
|
ports:
|
|
- port: 8080
|
|
- port: 8080
|
|
targetPort: 8080
|
|
targetPort: 8080
|
|
- nodePort: 30540
|
|
|
|
|
|
+ nodePort: 80740
|
|
selector:
|
|
selector:
|
|
- app: book-api-canary
|
|
|
|
|
|
+ app: playletapi-canary
|
|
---
|
|
---
|
|
#apiVersion: networking.k8s.io/v1
|
|
#apiVersion: networking.k8s.io/v1
|
|
#kind: Ingress
|
|
#kind: Ingress
|
|
#metadata:
|
|
#metadata:
|
|
-# name: book-api-ingress
|
|
|
|
|
|
+# name: playletapi-ingress
|
|
# namespace: book-api
|
|
# namespace: book-api
|
|
#spec:
|
|
#spec:
|
|
# rules:
|
|
# rules:
|
|
-# - host: book-api-book-api.ieasou.cn
|
|
|
|
|
|
+# - host: playletapi-playletapi.ieasou.cn
|
|
# http:
|
|
# http:
|
|
# paths:
|
|
# paths:
|
|
# - path: /
|
|
# - path: /
|
|
# pathType: Prefix
|
|
# pathType: Prefix
|
|
# backend:
|
|
# backend:
|
|
# service:
|
|
# service:
|
|
-# name: book-api-svc
|
|
|
|
|
|
+# name: playletapi-svc
|
|
# port:
|
|
# port:
|
|
# number: 8080
|
|
# number: 8080
|
|
# ingressClassName: nginx
|
|
# ingressClassName: nginx
|