Просмотр исходного кода

replace ngnix demo with FPGA simulation app

botao 2 месяцев назад
Родитель
Сommit
29ab60bfff

+ 6 - 7
apps/demo-app/base/deployment.yaml

@@ -1,19 +1,18 @@
 apiVersion: apps/v1
 kind: Deployment
 metadata:
-  name: demo-app
+  name: fpga-sim
 spec:
   replicas: 1
   selector:
     matchLabels:
-      app: demo-app
+      app: fpga-sim
   template:
     metadata:
       labels:
-        app: demo-app
+        app: fpga-sim
     spec:
       containers:
-        - name: demo-app
-          image: docker.m.daocloud.io/library/nginx:1.27.5-alpine
-          ports:
-            - containerPort: 80
+        - name: fpga-sim
+          image: fpga-sim-demo:latest
+          imagePullPolicy: IfNotPresent

+ 0 - 1
apps/demo-app/base/kustomization.yaml

@@ -1,3 +1,2 @@
 resources:
   - deployment.yaml
-  - service.yaml

+ 0 - 11
apps/demo-app/base/service.yaml

@@ -1,11 +0,0 @@
-apiVersion: v1
-kind: Service
-metadata:
-  name: demo-app
-spec:
-  selector:
-    app: demo-app
-  ports:
-    - port: 80
-      targetPort: 80
-  type: ClusterIP

+ 3 - 2
envs/prod/kustomization.yaml

@@ -9,5 +9,6 @@ labels:
       environment: prod
 
 images:
-  - name: docker.m.daocloud.io/library/nginx
-    newTag: 1.27-alpine
+  - name: fpga-sim-demo
+    newName: 192.168.2.83:5000/fpga-sim-demo
+    newTag: ce68df7

+ 3 - 2
envs/test/kustomization.yaml

@@ -9,5 +9,6 @@ labels:
       environment: test
 
 images:
-  - name: docker.m.daocloud.io/library/nginx
-    newTag: 1.27.5-alpine
+  - name: fpga-sim-demo
+    newName: 192.168.2.83:5000/fpga-sim-demo
+    newTag: ce68df7