From 5aaaa83b4dbb183854830ee1b3c861d57de848bc Mon Sep 17 00:00:00 2001 From: Lance Currington Date: Fri, 22 Nov 2024 18:31:35 -0600 Subject: [PATCH] added nginx app --- app-nginx-test.yaml | 24 ++++++++++++++++++++++++ nginx-test/deployment.yml | 20 ++++++++++++++++++++ nginx-test/service.yml | 13 +++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 app-nginx-test.yaml create mode 100644 nginx-test/deployment.yml create mode 100644 nginx-test/service.yml diff --git a/app-nginx-test.yaml b/app-nginx-test.yaml new file mode 100644 index 0000000..c865276 --- /dev/null +++ b/app-nginx-test.yaml @@ -0,0 +1,24 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: app-nginx-test + namespace: argocd +spec: + project: default + + source: + repoURL: https://git.curringtoncloud.com/ldc/HomeLab-GitOps.git + targetRevision: HEAD + path: nginx-test + destination: + server: https://kubernetes.default.svc + namespace: homelab + + syncPolicy: + syncOptions: + - CreateNamespace=true + + automated: + selfHeal: true + prune: true + diff --git a/nginx-test/deployment.yml b/nginx-test/deployment.yml new file mode 100644 index 0000000..44ff478 --- /dev/null +++ b/nginx-test/deployment.yml @@ -0,0 +1,20 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: nginx-test +spec: + selector: + matchLabels: + app: nginx-test + replicas: 2 + template: + metadata: + labels: + app: nginx-test + spec: + containers: + - name: nginx-test + image: nginx:alpine + ports: + - containerPort: 80 diff --git a/nginx-test/service.yml b/nginx-test/service.yml new file mode 100644 index 0000000..8408b1f --- /dev/null +++ b/nginx-test/service.yml @@ -0,0 +1,13 @@ +--- +apiVersion: v1 +kind: Service +metadata: + name: nginx-test +spec: + ipFamilyPolicy: PreferDualStack + selector: + app: nginx-test + ports: + - port: 80 + targetPort: 80 + type: LoadBalancer