From abe91231a5a42d4df28a38a4d38e09de2d5e73c5 Mon Sep 17 00:00:00 2001 From: Mathod Date: Mon, 17 Nov 2025 21:22:05 +0100 Subject: [PATCH] + app test --- bootstrap/apps/examples/README.md | 6 ++++++ bootstrap/apps/examples/deployment.yaml | 19 +++++++++++++++++++ bootstrap/apps/examples/kustomization.yaml | 5 +++++ bootstrap/apps/examples/service.yaml | 11 +++++++++++ 4 files changed, 41 insertions(+) create mode 100644 bootstrap/apps/examples/README.md create mode 100644 bootstrap/apps/examples/deployment.yaml create mode 100644 bootstrap/apps/examples/kustomization.yaml create mode 100644 bootstrap/apps/examples/service.yaml diff --git a/bootstrap/apps/examples/README.md b/bootstrap/apps/examples/README.md new file mode 100644 index 0000000..6da7288 --- /dev/null +++ b/bootstrap/apps/examples/README.md @@ -0,0 +1,6 @@ +# demo-app +### Installation: +To install this application using the `argocd-autopilot`, assuming you already have gone through the [bootstrap process](https://argocd-autopilot.readthedocs.io/en/latest/Getting-Started/), run the following: +```bash +argocd-autopilot app create hello-world --app github.com/Mathod95/courses/courses_002/apps/examples -p production +``` \ No newline at end of file diff --git a/bootstrap/apps/examples/deployment.yaml b/bootstrap/apps/examples/deployment.yaml new file mode 100644 index 0000000..943c7a2 --- /dev/null +++ b/bootstrap/apps/examples/deployment.yaml @@ -0,0 +1,19 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-deployment +spec: + replicas: 1 + selector: + matchLabels: + app: trivial-go-web-app + template: + metadata: + labels: + app: trivial-go-web-app + spec: + containers: + - name: webserver-simple + image: docker.io/kostiscodefresh/simple-web-app:3d9b390 + ports: + - containerPort: 8080 \ No newline at end of file diff --git a/bootstrap/apps/examples/kustomization.yaml b/bootstrap/apps/examples/kustomization.yaml new file mode 100644 index 0000000..87b09a3 --- /dev/null +++ b/bootstrap/apps/examples/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ./deployment.yaml + - ./service.yaml \ No newline at end of file diff --git a/bootstrap/apps/examples/service.yaml b/bootstrap/apps/examples/service.yaml new file mode 100644 index 0000000..00d86d6 --- /dev/null +++ b/bootstrap/apps/examples/service.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: simple-service +spec: + selector: + app: trivial-go-web-app + ports: + - protocol: TCP + port: 80 + targetPort: 8080 \ No newline at end of file