Feick 2 gadi atpakaļ
vecāks
revīzija
ce89eeddb4
2 mainītis faili ar 29 papildinājumiem un 31 dzēšanām
  1. 27 27
      deployment-prod.yaml
  2. 2 4
      deployment.yaml

+ 27 - 27
deployment-prod.yaml

@@ -1,15 +1,16 @@
 apiVersion: apps/v1
 kind: Deployment
 metadata:
-  name: frontend
+  name: diagnosis-frontend
   namespace: prod
+  labels:
+    app: diagnosis-frontend
 spec:
-  progressDeadlineSeconds: 600
-  replicas: 2
+  replicas: 1
   revisionHistoryLimit: 10
   selector:
     matchLabels:
-      workload.user.cattle.io/workloadselector: deployment-prod-frontend
+      app: diagnosis-frontend
   strategy:
     rollingUpdate:
       maxSurge: 1
@@ -17,33 +18,32 @@ spec:
     type: RollingUpdate
   template:
     metadata:
-      annotations:
-        field.cattle.io/ports: '[[{"containerPort":80,"dnsName":"frontend","kind":"ClusterIP","name":"80tcp02","protocol":"TCP","sourcePort":0}]]'
-      creationTimestamp: null
       labels:
-        workload.user.cattle.io/workloadselector: deployment-prod-frontend
+        app: diagnosis-frontend
     spec:
       containers:
-        - image: feick/diagnosis-frontend:${date}
+        - image: yaoxiang/diagnosis-frontend:${date}
           imagePullPolicy: IfNotPresent
-          name: frontend
+          name: diagnosis-frontend
           ports:
             - containerPort: 80
-              name: 80tcp02
+              name: 80tcp01
               protocol: TCP
-          resources: {}
-          securityContext:
-            allowPrivilegeEscalation: false
-            capabilities: {}
-            privileged: false
-            readOnlyRootFilesystem: false
-            runAsNonRoot: false
-          stdin: true
-          terminationMessagePath: /dev/termination-log
-          terminationMessagePolicy: File
-          tty: true
-      dnsPolicy: ClusterFirst
-      restartPolicy: Always
-      schedulerName: default-scheduler
-      securityContext: {}
-      terminationGracePeriodSeconds: 30
+
+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: diagnosis-frontend
+  namespace: prod
+  labels:
+    app: diagnosis-frontend
+spec:
+  selector:
+    app: diagnosis-frontend
+  type: ClusterIP
+  ports:
+    - port: 80
+      targetPort: 80
+      name: "http"
+      protocol: TCP

+ 2 - 4
deployment.yaml

@@ -19,12 +19,10 @@ spec:
   template:
     metadata:
       labels:
-        app: diagnosis
+        app: diagnosis-frontend
     spec:
       containers:
-        - args:
-            - --spring.profiles.active=dev
-          image: yaoxiang/diagnosis-frontend:${date}
+        - image: yaoxiang/diagnosis-frontend:${date}
           imagePullPolicy: IfNotPresent
           name: diagnosis-frontend
           ports: