From 2242b9777512314261b8bff95da9dcaf329a828e Mon Sep 17 00:00:00 2001 From: miwr Date: Mon, 14 Apr 2025 13:12:36 +0200 Subject: [PATCH] first commit --- .../fibonacci-app copy/backend.yaml | 20 +++++++++++++ .../fibonacci-app copy/frontend.yaml | 20 +++++++++++++ .../fibonacci-app copy/service.yaml | 29 +++++++++++++++++++ .../ref-implementation/jumpingGame.yaml | 25 ++++++++++++++++ .../stacks/ref-implementation/silly-game.yaml | 25 ++++++++++++++++ 5 files changed, 119 insertions(+) create mode 100644 template/stacks/ref-implementation/fibonacci-app copy/backend.yaml create mode 100644 template/stacks/ref-implementation/fibonacci-app copy/frontend.yaml create mode 100644 template/stacks/ref-implementation/fibonacci-app copy/service.yaml create mode 100644 template/stacks/ref-implementation/jumpingGame.yaml create mode 100644 template/stacks/ref-implementation/silly-game.yaml diff --git a/template/stacks/ref-implementation/fibonacci-app copy/backend.yaml b/template/stacks/ref-implementation/fibonacci-app copy/backend.yaml new file mode 100644 index 0000000..9d490c3 --- /dev/null +++ b/template/stacks/ref-implementation/fibonacci-app copy/backend.yaml @@ -0,0 +1,20 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: jumpingGameBackend + namespace: jumpingGame +spec: + replicas: 1 + selector: + matchLabels: + app: jumpingGameBackend + template: + metadata: + labels: + app: jumpingGameBackend + spec: + containers: + - name: jumpingGameBackend + image: https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/Michal.Wrobel/-/packages + ports: + - containerPort: 8080 \ No newline at end of file diff --git a/template/stacks/ref-implementation/fibonacci-app copy/frontend.yaml b/template/stacks/ref-implementation/fibonacci-app copy/frontend.yaml new file mode 100644 index 0000000..ab82c72 --- /dev/null +++ b/template/stacks/ref-implementation/fibonacci-app copy/frontend.yaml @@ -0,0 +1,20 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: jumpingGameFrontend + namespace: jumpingGame +spec: + replicas: 1 + selector: + matchLabels: + app: jumpingGameFrontend + template: + metadata: + labels: + app: jumpingGameFrontend + spec: + containers: + - name: jumpingGameFrontend + image: https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/Michal.Wrobel/-/packages + ports: + - containerPort: 8080 \ No newline at end of file diff --git a/template/stacks/ref-implementation/fibonacci-app copy/service.yaml b/template/stacks/ref-implementation/fibonacci-app copy/service.yaml new file mode 100644 index 0000000..fe94ba8 --- /dev/null +++ b/template/stacks/ref-implementation/fibonacci-app copy/service.yaml @@ -0,0 +1,29 @@ +apiVersion: v1 +kind: Service +metadata: + name: jumpingGameFrontendService + namespace: jumpingGame +spec: + selector: + app: jumpingGameFrontend + ports: + - protocol: TCP + port: 80 + targetPort: 8080 + type: ClusterIP + +--- + +apiVersion: v1 +kind: Service +metadata: + name: jumpingGameBackendService + namespace: jumpingGame +spec: + selector: + app: jumpingGameBackend + ports: + - protocol: TCP + port: 8080 + targetPort: 8080 + type: ClusterIP \ No newline at end of file diff --git a/template/stacks/ref-implementation/jumpingGame.yaml b/template/stacks/ref-implementation/jumpingGame.yaml new file mode 100644 index 0000000..37c1a8a --- /dev/null +++ b/template/stacks/ref-implementation/jumpingGame.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: jumpingGame + namespace: jumpingGame + labels: + env: dev + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + source: + repoURL: https://{{{ .Env.DOMAIN_GITEA }}}/giteaAdmin/edfbuilder + targetRevision: HEAD + path: "stacks/ref-implementation/jumpingGame" + destination: + server: "https://kubernetes.default.svc" + namespace: jumpingGame + syncPolicy: + syncOptions: + - CreateNamespace=true + automated: + selfHeal: true + retry: + limit: -1 diff --git a/template/stacks/ref-implementation/silly-game.yaml b/template/stacks/ref-implementation/silly-game.yaml new file mode 100644 index 0000000..c3fbf51 --- /dev/null +++ b/template/stacks/ref-implementation/silly-game.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: silly-game + namespace: silly-game + labels: + env: dev + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + source: + repoURL: https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/DevFW-CICD/michals-silly-game-backend + targetRevision: HEAD + path: "src/branch/main/k8" + destination: + server: "https://kubernetes.default.svc" + namespace: silly-game + syncPolicy: + syncOptions: + - CreateNamespace=true + automated: + selfHeal: true + retry: + limit: -1