Browse Source

[CI SKIP]

robert 1 year ago
parent
commit
1ab2149ab0
1 changed files with 17 additions and 17 deletions
  1. 17 17
      deploy-canary.yaml

+ 17 - 17
deploy-canary.yaml

@@ -3,26 +3,26 @@ apiVersion: apps.kruise.io/v1beta1
 #apiVersion: apps/v1
 #apiVersion: apps/v1
 kind: StatefulSet
 kind: StatefulSet
 metadata:
 metadata:
-  name: book-webview-canary
-  namespace: book-webview
+  name: duanju-miniprogram-api-canary
+  namespace: duanju-miniprogram-api
   labels:
   labels:
-    app: book-webview
+    app: duanju-miniprogram-api
 spec:
 spec:
-  serviceName: book-webview-canary
+  serviceName: duanju-miniprogram-api-canary
   replicas: 1
   replicas: 1
   selector:
   selector:
     matchLabels:
     matchLabels:
-      app: book-webview-canary
+      app: duanju-miniprogram-api-canary
   template:
   template:
     metadata:
     metadata:
       labels:
       labels:
-        app: book-webview-canary
+        app: duanju-miniprogram-api-canary
     spec:
     spec:
       readinessGates:
       readinessGates:
       - conditionType: InPlaceUpdateReady
       - conditionType: InPlaceUpdateReady
       terminationGracePeriodSeconds: 180
       terminationGracePeriodSeconds: 180
       #nodeSelector:
       #nodeSelector:
-      #  app/role: book-webview
+      #  app/role: duanju-miniprogram-api
       dnsPolicy: "None"
       dnsPolicy: "None"
       dnsConfig:
       dnsConfig:
         nameservers:
         nameservers:
@@ -51,7 +51,7 @@ spec:
           - name: volume
           - name: volume
             mountPath: /data
             mountPath: /data
       containers:
       containers:
-      - name: book-webview-canary
+      - name: duanju-miniprogram-api-canary
         image: hub.evbj.easou.com/dev/book-webview:v3.1base
         image: hub.evbj.easou.com/dev/book-webview:v3.1base
         imagePullPolicy: Always
         imagePullPolicy: Always
         ports:
         ports:
@@ -93,10 +93,10 @@ spec:
 apiVersion: v1
 apiVersion: v1
 kind: Service
 kind: Service
 metadata:
 metadata:
-  name: book-webview-canary-svc
-  namespace: book-webview
+  name: duanju-miniprogram-api-canary-svc
+  namespace: duanju-miniprogram-api
   labels:
   labels:
-    app: book-webview-canary-svc
+    app: duanju-miniprogram-api-canary-svc
 spec:
 spec:
   type: NodePort
   type: NodePort
   ports:
   ports:
@@ -104,27 +104,27 @@ spec:
     targetPort: 8080
     targetPort: 8080
     nodePort: 30101
     nodePort: 30101
   selector:
   selector:
-    app: book-webview-canary
+    app: duanju-miniprogram-api-canary
 ---
 ---
 #apiVersion: networking.k8s.io/v1
 #apiVersion: networking.k8s.io/v1
 #kind: Ingress
 #kind: Ingress
 #metadata:
 #metadata:
-#  name: book-webview-ingress
-#  namespace: book-webview
+#  name: duanju-miniprogram-api-ingress
+#  namespace: duanju-miniprogram-api
 #spec:
 #spec:
   #tls:
   #tls:
   #  - hosts:
   #  - hosts:
-  #      - dev-book-webview.ieasou.cn
+  #      - dev-duanju-miniprogram-api.ieasou.cn
   #    secretName: ieasou.cn
   #    secretName: ieasou.cn
 #  rules:
 #  rules:
-#  - host: book-webview-book-webview.ieasou.cn
+#  - host: duanju-miniprogram-api-duanju-miniprogram-api.ieasou.cn
 #    http:
 #    http:
 #      paths:
 #      paths:
 #      - path: /
 #      - path: /
 #        pathType: Prefix
 #        pathType: Prefix
 #        backend:
 #        backend:
 #          service:
 #          service:
-#            name: book-webview-svc
+#            name: duanju-miniprogram-api-svc
 #            port:
 #            port:
 #              number: 8080
 #              number: 8080
 #  ingressClassName: nginx
 #  ingressClassName: nginx