فهرست منبع

add multi-project GitOps layout for project-a

botao 2 هفته پیش
والد
کامیت
877c990e7a

+ 18 - 0
apps/project-a/base/deployment.yaml

@@ -0,0 +1,18 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+  name: fpga-sim
+spec:
+  replicas: 1
+  selector:
+    matchLabels:
+      app: fpga-sim
+  template:
+    metadata:
+      labels:
+        app: fpga-sim
+    spec:
+      containers:
+        - name: fpga-sim
+          image: fpga-sim-demo:latest
+          imagePullPolicy: IfNotPresent

+ 2 - 0
apps/project-a/base/kustomization.yaml

@@ -0,0 +1,2 @@
+resources:
+  - deployment.yaml

+ 14 - 0
envs/prod/project-a/kustomization.yaml

@@ -0,0 +1,14 @@
+resources:
+  - ../../../apps/project-a/base
+
+namespace: apps
+nameSuffix: -prod
+
+labels:
+  - pairs:
+      environment: prod
+
+images:
+  - name: fpga-sim-demo
+    newName: 192.168.2.125:30002/fpga/fpga-sim-demo
+    newTag: e063bb7

+ 14 - 0
envs/test/project-a/kustomization.yaml

@@ -0,0 +1,14 @@
+resources:
+  - ../../../apps/project-a/base
+
+namespace: apps
+nameSuffix: -test
+
+labels:
+  - pairs:
+      environment: test
+
+images:
+  - name: fpga-sim-demo
+    newName: 192.168.2.125:30002/fpga/fpga-sim-demo
+    newTag: c2ee1fc