From 0a7e02a2a627a0b607fc3a1f6c480a23ebe6cb64 Mon Sep 17 00:00:00 2001 From: ION606 Date: Sun, 24 Aug 2025 19:04:30 -0400 Subject: [PATCH] init --- application.yaml | 26 ++++++++++++++++++++++++++ deployment.yaml | 19 +++++++++++++++++++ service.yaml | 12 ++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 application.yaml create mode 100644 deployment.yaml create mode 100644 service.yaml diff --git a/application.yaml b/application.yaml new file mode 100644 index 0000000..d204326 --- /dev/null +++ b/application.yaml @@ -0,0 +1,26 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: guestbook + namespace: argocd +spec: + project: default + source: + repoURL: https://gitlab.com/nanuchi/argocd-app-config.git + targetRevision: HEAD + path: dev + destination: + server: https://kubernetes.default.svc + namespace: myapp + + # pulls every 3 minutes! YAY! + # NOTE: THESE ARE OFF BY DEFAULT!!! + syncPolicy: + syncOptions: + # create namespace if not found + - CreateNamespace=true + automated: + selfHeal: true + + # yeet the local + prune: true diff --git a/deployment.yaml b/deployment.yaml new file mode 100644 index 0000000..c39bc97 --- /dev/null +++ b/deployment.yaml @@ -0,0 +1,19 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: myapp +spec: + selector: + matchLabels: + app: myapp + replicas: 2 + template: + metadata: + labels: + app: myapp + spec: + containers: + - name: myapp + image: nanajanashia/argocd-app:1.2 + ports: + - containerPort: 8080 diff --git a/service.yaml b/service.yaml new file mode 100644 index 0000000..2f55848 --- /dev/null +++ b/service.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: myapp-service +spec: + selector: + app: myapp + ports: + - port: 8080 + protocol: TCP + targetPort: 8080 +